Commit Graph

32 Commits (fc5c384681d43f66cc06048557e120188b11ca9c)

Author SHA1 Message Date
Günther Brammer fc5c384681 Material: Remove color field, use textures as is
This also removes ColorByMaterial, which was alread unused in CE and CR.
2009-07-24 23:50:04 +02:00
Nicolas Hake c511615376 C4Object: Visibility made a property
Accordingly, SetVisibility and GetVisibility have been removed.
Specify visibility like obj->SetProperty("Visibility", VIS_Allies).
VIS_Local has been renamed VIS_Select and uses an array:
obj->SetProperty("Visibility", [VIS_Select, Plr0Visible, Plr1Visible, ...])
where Plr*Visible are of type bool.
2009-07-22 16:31:09 +02:00
Günther Brammer 893cd20109 Merge branch 'proplist' 2009-07-21 16:46:39 +02:00
Günther Brammer c1d3fbea02 Work around static initialization order fiasco
The C4Game::Default function should eventually be removed.
2009-06-30 22:55:06 +02:00
Günther Brammer c901530ee1 Move Game.Control to ::Control 2009-06-16 00:06:37 +02:00
Günther Brammer 078a0ca9e4 Move Game.Objects to ::Objects
Also move Game.{Back|Fore}Objects to ::Objects.{Back|Fore}Objects and clean
up DeleteObjects.
2009-06-15 23:47:26 +02:00
Günther Brammer c6dee6d7c8 Move Game.Players to ::Players 2009-06-13 01:09:32 +02:00
Günther Brammer 009cfc9e7b Remove C4Wrappers and put most functions in relevant headers
This also removes the TickXXX #defines and moves the lookup of predefined
materials to C4Material.
2009-06-12 20:52:21 +02:00
Günther Brammer 46d0d93dfc Move Game.Weather to ::Weather 2009-06-11 21:59:35 +02:00
Günther Brammer 4d047ed20f Move Game.Material to ::MaterialMap 2009-06-05 20:46:03 +02:00
Günther Brammer 31e27e91f5 Move Game.Messages to ::Messages 2009-06-05 20:12:43 +02:00
Günther Brammer 6e4df10454 Header reorganisation
Lots of #includes are moved from C4Game.h to the files that actually need
them
2009-06-05 20:00:23 +02:00
Günther Brammer 760df013ba Move Game.pGUI to ::pGUI 2009-06-05 18:53:56 +02:00
Günther Brammer 96080bd839 Move Game.Defs to ::Definitions 2009-06-05 18:46:37 +02:00
Günther Brammer 33eb6079ab Move Game.Landscape to ::Landscape 2009-06-05 17:20:41 +02:00
Günther Brammer fa05c07d5c Move Game.Network to ::Network 2009-06-05 17:19:46 +02:00
Günther Brammer 724f81724d Move Game.GraphicsResource to ::GraphicsResource 2009-06-05 17:19:15 +02:00
Günther Brammer ad779a0dc1 Move Game.GraphicsSystem to ::GraphicsSystem 2009-06-05 17:14:20 +02:00
Günther Brammer a0bbab441f Move Game.Rank to ::DefaultRanks 2009-06-05 17:13:33 +02:00
Günther Brammer 08957a3b9a Add copyright notices
These are automatically generated from the old redwolf design repository.
They are probably somewhat inaccurate.
2009-06-05 15:41:20 +02:00
Günther Brammer d84cdd5e71 Remove even more shareware restrictions 2009-06-05 15:46:13 +02:00
Günther Brammer eaeae35af9 Miscellanous cleanup 2009-04-28 21:35:53 +02:00
Sven Eberhardt 83cebbdcf3 gui zoom off in default branch 2009-04-24 05:47:10 +02:00
Nicolas Hake 5e5184458c Engine: Removed OSTR 2009-05-11 15:09:53 +02:00
Günther Brammer 9e08426f65 Remove most shareware restrictions
One can now start the developer mode and every scenario without
a registration, but the game still complains about not being registered.

committer: Günther Brammer <gbrammer@gmx.de>
2009-05-09 14:37:20 +02:00
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 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 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 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