Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Mar 29, 2007, 6:08:23 PM (17 years ago)
Author:
snellen
Message:

added tick trigger which always calles the script

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/scriptimprovements/src/world_entities/script_triggers/tick_trigger.h

    r10607 r10609  
     1/*!
     2 * @file space_trigger.h
     3 *  always triggeres a script
     4 */
     5
     6#ifndef _TICK_TRIGGER_H
     7#define _TICK_TRIGGER_H
     8
     9#include <string>
     10
     11#include "script.h"
     12#include "script_class.h"
     13#include "script_trigger.h"
     14
     15class TickTrigger : public ScriptTrigger
     16{
     17  ObjectListDeclaration(TickTrigger);
     18 
     19  public:
     20    TickTrigger(const TiXmlElement* root = NULL);
     21    ~TickTrigger();
     22
     23    /// DO WORK
     24    virtual void tick(float timestep);
     25
     26};
     27
     28
     29#endif
Note: See TracChangeset for help on using the changeset viewer.