Logo Search packages:      
Sourcecode: freecraft version File versions

trigger.h

//   ___________             _________                _____  __
//   \_       _____/______   ____   ____ \_   ___ \____________ _/ ____\/  |_
//    |    __) \_  __ \_/ __ \_/ __ \/    \  \/\_  __ \__  \\   __\\   __|
//    |     \   |  | \/\  ___/\  ___/\     \____|  | \// __ \|  |   |  |
//    \___  /   |__|    \___  >\___  >\______  /|__|  (____  /__|   |__|
//      \/            \/         \/      \/              \/
//  ______________________                           ______________________
//                  T H E   W A R   B E G I N S
//       FreeCraft - A free fantasy real time strategy game engine
//
/**@name trigger.h      -     The game trigger headerfile. */
//
//    (c) Copyright 2002 by Lutz Sammer
//
//    FreeCraft is free software; you can redistribute it and/or modify
//    it under the terms of the GNU General Public License as published
//    by the Free Software Foundation; only version 2 of the License.
//
//    FreeCraft is distributed in the hope that it will be useful,
//    but WITHOUT ANY WARRANTY; without even the implied warranty of
//    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
//    GNU General Public License for more details.
//
//    $Id: trigger.h,v 1.7 2002/12/17 06:40:45 nehalmistry Exp $

#ifndef __TRIGGER_H__
#define __TRIGGER_H__

//@{

/*----------------------------------------------------------------------------
--    Declarations
----------------------------------------------------------------------------*/

/**
**    Timer structure
*/
00038 typedef struct _timer_ {
    char Init;                      /// timer is initialized
00040     char Running;             /// timer is running
00041     char Increasing;                /// increasing or decreasing
00042     long Cycles;              /// current value in game cycles
00043     unsigned long LastUpdate;       /// GameCycle of last update
} Timer;

/*----------------------------------------------------------------------------
--    Variables
----------------------------------------------------------------------------*/

extern Timer GameTimer;             /// the game timer

/*----------------------------------------------------------------------------
--    Functions
----------------------------------------------------------------------------*/

extern void TriggersEachCycle(void);      /// test triggers

extern void TriggerCclRegister(void);     /// Register ccl features
extern void SaveTriggers(FILE*);    /// Save the trigger module
extern void InitTriggers(void);           /// Setup triggers
extern void CleanTriggers(void);    /// Cleanup the trigger module

//@}

#endif      // !__TRIGGER_H__

Generated by  Doxygen 1.6.0   Back to index