Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 5, 2007, 6:16:07 PM (17 years ago)
Author:
snellen
Message:

added and tested a new kind of trigger: the time trigger

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/scriptimprovements/src/world_entities/script_triggers/time_trigger.cc

    r10620 r10621  
    7676}
    7777
     78/**
     79 * Reads the values from the tml element and sets them.
     80 * @param root the xml element to load the parameters from.
     81 *
     82 */
     83void TimeTrigger::loadParams(const TiXmlElement* root)
     84{
     85
     86  ScriptTrigger ::loadParams(root);
     87
     88  LoadParam(root, "delay", this, TimeTrigger, setDelay)
     89      .describe("the time after wich the timer is activated")
     90      .defaultValues(0);
     91 
     92}
    7893
    7994void TimeTrigger::tick(float timestep)
Note: See TracChangeset for help on using the changeset viewer.