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

src/include/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_UNITS   ((const CUnitType *)-1)
#define ALL_FOODUNITS   ((const CUnitType *)-2)
#define ALL_BUILDINGS   ((const CUnitType *)-3)
CTimer GameTimer
TriggerDataType TriggerData
 the game timer
int TriggerGetPlayer (lua_State *l)
const CUnitTypeTriggerGetUnitType (lua_State *l)
 get player number.
void TriggersEachCycle ()
 get the unit-type
void TriggerCclRegister ()
 test triggers
void SaveTriggers (CFile *file)
 Register ccl features.
void InitTriggers ()
 Save the trigger module.
void CleanTriggers ()
 Setup triggers.

Define Documentation

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

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

#define ALL_UNITS   ((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:
file Open file to print to

void TriggerCclRegister (  ) 

test triggers

Register CCL features for triggers.

int TriggerGetPlayer ( lua_State *  l  ) 

Get player number.

Parameters:
l Lua state.
Returns:
The player number, -1 matches any.

const CUnitType* TriggerGetUnitType ( lua_State *  l  ) 

get player number.

Get the unit-type.

Parameters:
l Lua state.
Returns:
The unit-type pointer.

void TriggersEachCycle (  ) 

get the unit-type

Check trigger each game cycle.


Variable Documentation

the game timer

Some data accessible for script during the game.

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