Commit Graph

9195 Commits (liquid_container)
 

Author SHA1 Message Date
Nicolas Hake 0f050f0343 Import source 2009-05-08 15:28:41 +02:00
Günther Brammer 4b022c0a45 Give PropLists an ObjectNumber 2009-04-19 23:33:42 +02:00
Günther Brammer 64c7be0429 Garbage collect unused proplists to avoid memory leaks 2009-05-20 00:37:14 +02:00
Günther Brammer 07b58d88f3 Move some stuff to C4GameObjects 2009-04-19 00:23:58 +02:00
Günther Brammer cb1e6e6a5c Add a PropList set to C4GameObjects to keep track of all proplists
Also remove C4EnumPointer2. It was only used for C4Player object pointers,
which only need an offset, not a range.
2009-04-18 02:46:19 +02:00
Günther Brammer abe1bad6bd Add a global variable holding a prototype for actions
Either the engine or the script part of this should be replaced later.
2009-04-28 21:45:42 +02:00
Günther Brammer c86532ea6f Script to convert Clonk Rage objects to the new format
Currently converts Names.txt, ActMap.txt and Collectible to properties.
2009-05-20 00:36:08 +02:00
Günther Brammer c420a3bf3b C4Value does not store C4IDs anymore
Instead, C4IDs are converted from/to C4PropLists. This will have to change,
of course.

Objects can be created from prototypes which only inherit from C4Def
2009-04-12 14:04:28 +02:00
Günther Brammer b9f398b111 Replace C4ActionDef with C4PropList
C4Object now stores a pointer to a C4PropList instead of the Name and Number
of a C4ActionDef in the ActMap of the Object's definition.
2009-04-12 14:03:14 +02:00
Günther Brammer 427a2f2346 Collectible as a property 2009-04-11 16:38:31 +02:00
Günther Brammer 0898288a87 Merge C4DefCore and C4Def
The DefCore was only used by the editor and to get an id from a filename
for the drag and drop code. The former is dead, the latter does not need
the separation.
2009-05-20 00:34:13 +02:00
Günther Brammer 79f8d5496a Add CreatePropList script function
Is this needed?
2009-05-20 00:32:01 +02:00
Günther Brammer bf839b9a66 Call Definition in every definition at start
This is mainly intended to fill the proplist of the definition and replace
the defcore, but other one time initialisation could also be done at that
point.
2009-05-20 00:30:49 +02:00
Günther Brammer 1964e442f1 Add C4PropList literals
The syntax is { Key: value, "Key2": value2 , Key3 = value3 }
We might want to drop : or = later.
2009-04-12 02:56:41 +02:00
Günther Brammer 9a9a7fec62 Make C4Object::Name a property
Every proplist can have a name, so move the code there.
2009-04-03 21:06:29 +02:00
Günther Brammer c4b68c771d Move ::Game.ScriptEngine.Strings to ::Strings
This saves some typing and better reflects the role of the object:
It's no longer the list of strings that has to be saved in the savegame,
but is only used to ensure that no string is duplicated.
2009-04-03 23:53:48 +02:00
Günther Brammer 42d3b6e79a Add C4PropList
A Proplist is a map of C4Strings to C4Values which can chain lookups
to "Prototype" Proplists. This can be used to implement inheritance.

Proplists can be stored in C4Values.

C4Object now inherits from C4Proplist, C4Values can be converted between
those two.
2009-05-20 00:12:11 +02:00
Günther Brammer 6274cf7a5e Hold C4Strings in a hashtable instead of a linked list
I didn't measure wether this helps performance, but I plan to use the
generic hashtable for function lists and object fields, too.
2009-04-01 23:36:58 +02:00
Günther Brammer 529247da2c C4Network2ClientDlg does not label active or remote clients
Instead, silence stands for that, and inactive and local clients are
called out.
2008-06-11 22:17:42 +02:00
Günther Brammer d4ad94f1bf autotools: Remove superfluous variable from Makefile.am 2011-05-19 23:44:17 +02:00
Günther Brammer 4bf663c792 Remove unused Landscape.NoSky from the Scenario.txt 2011-09-24 18:17:48 +02:00
Günther Brammer f357570bb1 Use big landscape tiles when classic shaders are enabled 2011-05-31 01:28:31 +02:00
Günther Brammer f055ed27e8 Draw PXS Sprites a little bit smoother 2011-05-26 15:03:51 +02:00
Günther Brammer dfc799aa27 Rename C4Group_GetFileCRC/SHA1 to GetFileCRC/SHA1
These functions aren't used for files in groups and
consequently broken for them. Remove the dead code.
2011-09-15 20:16:00 +02:00
Günther Brammer 2fcdd4d929 Convert keyboard key names to utf-8 2011-09-28 01:12:45 +02:00
Günther Brammer 8941abb4f4 Display waiting-for-league-result in the gameoverdlg 2011-09-28 01:11:55 +02:00
Günther Brammer 1f160083d7 editor: Do not copy and delete the scenario before saving 2011-09-28 01:10:31 +02:00
Günther Brammer 562816cfe5 Clean up some unused variables and obsolete FIXMEs 2011-09-28 01:09:56 +02:00
Günther Brammer 9bfd8097ae Minimal.ocs can rely on Definition1 default 2011-06-07 01:13:35 +02:00
Maikel de Vries ebb5751d47 Tutorial4: Fixed losing weapons forever (#667) 2011-10-03 15:06:38 +02:00
Maikel de Vries 49bfc2aacb Objects: Stonedoor damage now visible through cracks (#669)
Thanks to ringwaul for the graphics.
2011-10-03 14:04:38 +02:00
Nicolas Hake 8073e1cb47 win32: Remove DirectX config option 2011-10-03 13:12:55 +02:00
Nicolas Hake cc672bbd00 win32: Automatically check for DbgHelp availability 2011-10-03 13:09:51 +02:00
Nicolas Hake 14f81d7eef Move cmake modules to separate directory 2011-10-03 13:03:22 +02:00
Günther Brammer 5ca85f97c5 CrewMembers are only banned from resurrection during Death callbacks (#532)
This avoids immediate resurrection, but allows Clonks to return later in
the same round, just like they can return later in the next round.
2011-10-02 18:47:21 +02:00
Maikel de Vries d9c431e7e4 Engine: Fix possible crash in C4Landscape::InsertDeadMaterial (#666) 2011-10-01 19:32:16 +02:00
Charles Spurrill 5f3c881f19 Target ballon in tut 3 makes popping noise when shot 2011-10-01 09:27:24 -07:00
Charles Spurrill 69369aa59e Blast sounds different under water (or any liquid) 2011-10-01 09:23:44 -07:00
Charles Spurrill 7475f2271a Chest animation fix 2011-10-01 08:39:59 -07:00
Charles Spurrill 0469fe5c81 Drive animation/pose for plane; clonk doesn't swim inside containers 2011-10-01 08:34:35 -07:00
Charles Spurrill cf720b8bc8 update other clonk's skeletons to current data as well 2011-10-01 04:43:56 -07:00
Maikel de Vries 59c1aefad9 Objects: All Versions to 5,2,0,1 2011-10-01 10:54:15 +02:00
Maikel de Vries 30e109b73a Tutorial 4: Fixed item swith when dying (#665) 2011-10-01 10:41:53 +02:00
Maikel de Vries fed64efa6d Tutorial 2: Fixed blasting spot under ropeladder 2011-10-01 10:31:41 +02:00
Charles Spurrill cd7d0bf5f2 Fix star parallaxity 2011-09-30 22:29:36 -07:00