Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8402 in orxonox.OLD


Ignore:
Timestamp:
Jun 14, 2006, 5:10:53 PM (18 years ago)
Author:
snellen
Message:

added comments

Location:
branches/script_engine/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/script_engine/src/lib/script_engine/script_class.h

    r8401 r8402  
    2020#define CREATE_SCRIPTABLE_CLASS(CLASS_NAME, CLASS_ID, SCRIPT_METHODS) \
    2121    tScriptClass<CLASS_NAME> global_##CLASS_NAME##_ScriptableClass(#CLASS_NAME, CLASS_ID, (new ScriptMethod)->SCRIPT_METHODS)
    22 
    2322
    2423
  • branches/script_engine/src/world_entities/script_trigger.cc

    r8395 r8402  
    11//for testing
    22#include "luaincl.h"
     3
    34#include "script_trigger.h"
    45#include "class_list.h"
     
    910
    1011
     12/**
     13 * Constructs a new ScriptTrigger.
     14 * @param root the xml element to load the parameters from.
     15 *
     16 */
    1117ScriptTrigger::ScriptTrigger(const TiXmlElement* root)
    1218{
     
    2127}
    2228
     29/**
     30 * Deletes the ScriptTrigger.
     31 *
     32 */
    2333ScriptTrigger::~ScriptTrigger()
    2434{
     
    2636}
    2737
     38/**
     39 * Reads the values from the tml element and sets them.
     40 * @param root the xml element to load the parameters from.
     41 *
     42 */
    2843void ScriptTrigger::loadParams(const TiXmlElement* root)
    2944{
     
    6479
    6580
     81/**
     82 * Sets the target(a world entity) of the ScriptTrigger. If the distance between the target and this trigger is smaller than the radius, the script gets triggered.
     83 * @param target The worldentity that the script supervises.
     84 */
    6685void ScriptTrigger::setTarget(const std::string& target)
    6786{
Note: See TracChangeset for help on using the changeset viewer.