_________ __                 __
        /   _____//  |_____________ _/  |______     ____  __ __  ______
        \_____  \\   __\_  __ \__  \\   __\__  \   / ___\|  |  \/  ___/
        /        \|  |  |  | \// __ \|  |  / __ \_/ /_/  >  |  /\___ \
       /_______  /|__|  |__|  (____  /__| (____  /\___  /|____//____  >
               \/                  \/          \//_____/            \/
    ______________________                           ______________________
                          T H E   W A R   B E G I N S
                   Stratagus - A free fantasy real time strategy game engine

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Classes
trigger.h File Reference

Go to the source code of this file.

Classes

class  CTimer
 
struct  TriggerDataType
 

trigger.h - The game trigger headerfile.

#define ANY_UNIT   ((const CUnitType *)0)
 
#define ALL_FOODUNITS   ((const CUnitType *)-1)
 
#define ALL_BUILDINGS   ((const CUnitType *)-2)
 
CTimer GameTimer
 
TriggerDataType TriggerData
 the game timer More...
 
int TriggerGetPlayer (lua_State *l)
 
const CUnitTypeTriggerGetUnitType (lua_State *l)
 get player number. More...
 
void TriggersEachCycle ()
 get the unit-type More...
 
void TriggerCclRegister ()
 test triggers More...
 
void SaveTriggers (CFile &file)
 Register ccl features. More...
 
void InitTriggers ()
 Save the trigger module. More...
 
void CleanTriggers ()
 Setup triggers. More...
 

Macro Definition Documentation

#define ALL_BUILDINGS   ((const CUnitType *)-2)
#define ALL_FOODUNITS   ((const CUnitType *)-1)
#define ANY_UNIT   ((const CUnitType *)0)

Function Documentation

void CleanTriggers ( )

Setup triggers.

Clean up the trigger module.

void InitTriggers ( )

Save the trigger module.

Initialize the trigger module.

void SaveTriggers ( CFile file)

Register ccl features.

Save the trigger module.

Parameters
fileOpen file to print to
void TriggerCclRegister ( )

test triggers

Register CCL features for triggers.

int TriggerGetPlayer ( lua_State *  l)

Get player number.

Parameters
lLua state.
Returns
The player number, -1 matches any.
const CUnitType* TriggerGetUnitType ( lua_State *  l)

get player number.

Get the unit-type.

Parameters
lLua state.
Returns
The unit-type pointer.
void TriggersEachCycle ( )

get the unit-type

Check trigger each game cycle.

Variable Documentation

CTimer GameTimer
TriggerDataType TriggerData

the game timer

Some data accessible for script during the game.

the game timer

(C) Copyright 1998-2012 by The Stratagus Project under the GNU General Public License.
All trademarks and copyrights on this page are owned by their respective owners.