$treeview $search $mathjax
Stratagus
2.2.7
$projectbrief
|
$projectbrief
|
$searchbox |
_________ __ __ / _____// |_____________ _/ |______ ____ __ __ ______ \_____ \\ __\_ __ \__ \\ __\__ \ / ___\| | \/ ___/ / \| | | | \// __ \| | / __ \_/ /_/ > | /\___ \ /_______ /|__| |__| (____ /__| (____ /\___ /|____//____ > \/ \/ \//_____/ \/ ______________________ ______________________ T H E W A R B E G I N S Stratagus - A free fantasy real time strategy game engine
#include <construct.h>
Public Member Functions | |
CConstruction () | |
construct.cpp - The constructions. | |
~CConstruction () | |
void | Clean () |
void | Load () |
Public Attributes | |
std::string | Ident |
struct { | |
std::string File | |
int Width | |
sprite file | |
int Height | |
sprite width | |
} | File |
construction identifier | |
struct { | |
std::string File | |
int Width | |
sprite file | |
int Height | |
sprite width | |
} | ShadowFile |
CConstructionFrame * | Frames |
CPlayerColorGraphic * | Sprite |
construction frames | |
CGraphic * | ShadowSprite |
sprite height | |
int | ShadowWidth |
construction shadow sprite image | |
int | ShadowHeight |
shadow sprite width |
#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.
CConstruction::CConstruction | ( | ) | [inline] |
CConstruction::~CConstruction | ( | ) |
void CConstruction::Clean | ( | ) |
void CConstruction::Load | ( | ) |
std::string CConstruction::Ident |
std::string CConstruction::File |
sprite file
construction sprite image
sprite width
struct { ... } CConstruction::File |
construction identifier
struct { ... } CConstruction::ShadowFile |
construction frames
sprite height
construction shadow sprite image
shadow sprite width