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

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

◆ ALL_BUILDINGS

#define ALL_BUILDINGS   ((const CUnitType *)-2)

◆ ALL_FOODUNITS

#define ALL_FOODUNITS   ((const CUnitType *)-1)

◆ ANY_UNIT

#define ANY_UNIT   ((const CUnitType *)0)

Function Documentation

◆ CleanTriggers()

void CleanTriggers ( )

Setup triggers.

Clean up the trigger module.

◆ InitTriggers()

void InitTriggers ( )

Save the trigger module.

Initialize the trigger module.

◆ SaveTriggers()

void SaveTriggers ( CFile file)

Register ccl features.

Save the trigger module.

Parameters
fileOpen file to print to

◆ TriggerCclRegister()

void TriggerCclRegister ( )

test triggers

Register CCL features for triggers.

◆ TriggerGetPlayer()

int TriggerGetPlayer ( lua_State *  l)

Get player number.

Parameters
lLua state.
Returns
The player number, -1 matches any.

◆ TriggerGetUnitType()

const CUnitType* TriggerGetUnitType ( lua_State *  l)

get player number.

Get the unit-type.

Parameters
lLua state.
Returns
The unit-type pointer.

◆ TriggersEachCycle()

void TriggersEachCycle ( )

get the unit-type

Check trigger each game cycle.

Variable Documentation

◆ GameTimer

CTimer GameTimer

◆ TriggerData

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.