____ _ __
/ __ )____ _____ | | / /___ ___________
/ __ / __ \/ ___/ | | /| / / __ `/ ___/ ___/
/ /_/ / /_/ (__ ) | |/ |/ / /_/ / / (__ )
/_____/\____/____/ |__/|__/\__,_/_/ /____/
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 <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "stratagus.h"
#include "video.h"
#include "map.h"
#include "construct.h"
#include "script.h"
Go to the source code of this file.
Functions | |
| void | InitConstructions (void) |
| < Initialize the constructions module | |
| void | LoadConstructions (void) |
| Clean up the constructions module. | |
| void | CleanConstructions (void) |
| Get construction by identifier. | |
| CConstruction * | ConstructionByIdent (const std::string &ident) |
| Register ccl features. | |
| static int | CclDefineConstruction (lua_State *l) |
| void | ConstructionCclRegister (void) |
Variables | |
| static std::vector < CConstruction * > | Constructions |
Definition in file construct.cpp.
| static int CclDefineConstruction | ( | lua_State * | l | ) | [static] |
Parse the construction.
| l | Lua state. |
Definition at line 153 of file construct.cpp.
References _C_, ConstructionFileConstruction, ConstructionFileMain, Constructions, CConstruction::File, CConstruction::Frames, CConstruction::Height, CConstruction::Ident, LuaCheckArgs, LuaError, LuaToNumber(), LuaToString(), CConstructionFrame::Percent, CConstruction::ShadowFile, and CConstruction::Width.
Referenced by ConstructionCclRegister().
| void CleanConstructions | ( | void | ) |
Get construction by identifier.
Cleanup the constructions.
Definition at line 101 of file construct.cpp.
References Constructions, CGraphic::Free(), and CConstructionFrame::Next.
Referenced by CleanModules().
| CConstruction* ConstructionByIdent | ( | const std::string & | ident | ) |
Register ccl features.
Get construction by identifier.
| ident | Identfier of the construction |
Definition at line 131 of file construct.cpp.
References _C_, Constructions, and DebugPrint.
Referenced by CclDefineUnitType().
| void ConstructionCclRegister | ( | void | ) |
Register CCL features for construction.
Definition at line 295 of file construct.cpp.
References CclDefineConstruction(), and Lua.
Referenced by InitCcl().
| void InitConstructions | ( | void | ) |
< Initialize the constructions module
Initialize the constructions.
Definition at line 61 of file construct.cpp.
Referenced by CreateGame(), and InitModules().
| void LoadConstructions | ( | void | ) |
Clean up the constructions module.
Load the graphics for the constructions.
Definition at line 68 of file construct.cpp.
References Constructions, CGraphic::ForceNew(), CPlayerColorGraphic::New(), and ShowLoadProgress().
Referenced by CreateGame(), and LoadModules().
std::vector<CConstruction *> Constructions [static] |
Constructions.
Definition at line 52 of file construct.cpp.
Referenced by CclDefineConstruction(), CleanConstructions(), ConstructionByIdent(), and LoadConstructions().
1.5.6