____                _       __
    / __ )____  _____   | |     / /___ ___________
   / __  / __ \/ ___/   | | /| / / __ `/ ___/ ___/
  / /_/ / /_/ (__  )    | |/ |/ / /_/ / /  (__  )
 /_____/\____/____/     |__/|__/\__,_/_/  /____/

       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"

construct.cpp File Reference

The constructions. More...

#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.
CConstructionConstructionByIdent (const std::string &ident)
 Register ccl features.
static int CclDefineConstruction (lua_State *l)
void ConstructionCclRegister (void)

Variables

static std::vector
< CConstruction * > 
Constructions


Detailed Description

The constructions.

Definition in file construct.cpp.


Function Documentation

static int CclDefineConstruction ( lua_State *  l  )  [static]

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.

Parameters:
ident Identfier of the construction
Returns:
Construction structure pointer

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().


Variable Documentation

std::vector<CConstruction *> Constructions [static]

Constructions.

Definition at line 52 of file construct.cpp.

Referenced by CclDefineConstruction(), CleanConstructions(), ConstructionByIdent(), and LoadConstructions().


Generated on Sat Feb 21 00:28:16 2009 for Bos Wars by  doxygen 1.5.6