_________ __ __
/ _____// |_____________ _/ |______ ____ __ __ ______
\_____ \\ __\_ __ \__ \\ __\__ \ / ___\| | \/ ___/
/ \| | | | \// __ \| | / __ \_/ /_/ > | /\___ \
/_______ /|__| |__| (____ /__| (____ /\___ /|____//____ >
\/ \/ \//_____/ \/
______________________ ______________________
T H E W A R B E G I N S
Stratagus - A free fantasy real time strategy game engine
Construction shown during construction of a building. More...
#include <construct.h>
Public Member Functions | |
| CConstruction () | |
construct.cpp - The constructions. | |
| ~CConstruction () | |
| void | Clean () |
| void | Load (bool force=false) |
Public Attributes | |
| std::string | Ident |
| struct { | |
| std::string File | |
| int Width | |
| sprite file More... | |
| int Height | |
| sprite width More... | |
| } | File |
| construction identifier More... | |
| struct { | |
| std::string File | |
| int Width | |
| sprite file More... | |
| int Height | |
| sprite width More... | |
| } | ShadowFile |
| CConstructionFrame * | Frames |
| CPlayerColorGraphic * | Sprite |
| construction frames More... | |
| CGraphic * | ShadowSprite |
| sprite height More... | |
| int | ShadowWidth |
| construction shadow sprite image More... | |
| int | ShadowHeight |
| shadow sprite width More... | |
Construction shown during construction of a building.
#include "construct.h"
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.
|
inline |
| CConstruction::~CConstruction | ( | ) |
| void CConstruction::Clean | ( | ) |
| void CConstruction::Load | ( | bool | force = false | ) |
| std::string CConstruction::File |
| struct { ... } CConstruction::File |
construction identifier
| CConstructionFrame* CConstruction::Frames |
| int CConstruction::Height |
sprite width
| std::string CConstruction::Ident |
| struct { ... } CConstruction::ShadowFile |
| int CConstruction::ShadowHeight |
shadow sprite width
| CGraphic* CConstruction::ShadowSprite |
sprite height
| int CConstruction::ShadowWidth |
construction shadow sprite image
| CPlayerColorGraphic* CConstruction::Sprite |
construction frames
| int CConstruction::Width |
sprite file
construction sprite image
1.8.17
(C) Copyright 1998-2012 by The Stratagus Project under the GNU General Public License.