____ _ __
/ __ )____ _____ | | / /___ ___________
/ __ / __ \/ ___/ | | /| / / __ `/ ___/ ___/
/ /_/ / /_/ (__ ) | |/ |/ / /_/ / / (__ )
/_____/\____/____/ |__/|__/\__,_/_/ /____/
A futuristic real-time strategy game.
This file is part of Bos Wars.
(C) Copyright 2001-2007 by the Bos Wars and Stratagus Project.
Distributed under the "GNU General Public License"#include <construct.h>
Public Member Functions | |
| CConstruction () | |
Public Attributes | |
| std::string | Ident |
| construction identifier | |
| struct { | |
| std::string File | |
| sprite file | |
| int Width | |
| sprite width | |
| int Height | |
| sprite height | |
| } | File |
| struct { | |
| std::string File | |
| sprite file | |
| int Width | |
| sprite width | |
| int Height | |
| sprite height | |
| } | ShadowFile |
| CConstructionFrame * | Frames |
| construction frames | |
| CPlayerColorGraphic * | Sprite |
| construction sprite image | |
| CGraphic * | ShadowSprite |
| construction shadow sprite image | |
| int | ShadowWidth |
| shadow sprite width | |
| int | ShadowHeight |
| shadow sprite height | |
Each building perhaps also units can have its own construction frames. This construction frames are currently not animated, this is planned for the future. What construction frames a building has, is handled by UnitType::Construction.
The construction structure members:
Unique identifier of the construction, used to reference it in the config files and during startup. As convention they start with "construction-" fe. "construction-land".
Path file name of the sprite file.
Path file name of shadow sprite file.
Frames of the construction sequence.
Sprite image.
CConstruction::Width CConstruction::Height
Size of a sprite frame in pixels. All frames of a sprite have the same size. Also all sprites (tilesets) must have the same size.
Shadow sprite image.
CConstruction::ShadowWidth CConstruction::ShadowHeight
Size of a shadow sprite frame in pixels. All frames of a sprite have the same size. Also all sprites (tilesets) must have the same size.
Definition at line 116 of file construct.h.
| CConstruction::CConstruction | ( | ) | [inline] |
| std::string CConstruction::Ident |
construction identifier
Definition at line 127 of file construct.h.
Referenced by CclDefineConstruction().
| std::string CConstruction::File |
sprite file
Definition at line 129 of file construct.h.
Referenced by CclDefineConstruction(), and CConstruction().
sprite width
Definition at line 130 of file construct.h.
Referenced by CclDefineConstruction(), DrawConstruction(), and DrawConstructionShadow().
sprite height
Definition at line 131 of file construct.h.
Referenced by CclDefineConstruction(), DrawConstruction(), and DrawConstructionShadow().
| struct { ... } CConstruction::File |
| struct { ... } CConstruction::ShadowFile |
Referenced by CclDefineConstruction(), and CConstruction().
construction frames
Definition at line 133 of file construct.h.
Referenced by CclDefineConstruction(), CclParseBuilt(), CclUnit(), SaveUnit(), and UpdateConstructionFrame().
construction sprite image
Definition at line 137 of file construct.h.
Referenced by DrawConstruction().
construction shadow sprite image
Definition at line 140 of file construct.h.
Referenced by DrawConstructionShadow().
1.5.6