Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Oct 19, 2008, 11:17:18 PM (16 years ago)
Author:
bknecht
Message:

now you can also invert the mode in the XML loading

Location:
code/branches/script_trigger/src/orxonox/objects
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/script_trigger/src/orxonox/objects/Trigger.cc

    r1954 r1956  
    223223    XMLPortParamLoadOnly(Trigger, "stayOn", setStayOn, xmlelement, mode);
    224224    XMLPortParamLoadOnly(Trigger, "activations", setActivations, xmlelement, mode);
     225    XMLPortParamLoadOnly(Trigger, "invert", setInvert, xmlelement, mode);
    225226    //XMLPortParamLoadOnlyTemplate(Trigger, "mode", setMode, xmlelement, mode, std::string);
    226227
  • code/branches/script_trigger/src/orxonox/objects/Trigger.h

    r1954 r1956  
    5656      inline bool isActive() { return bActive_; }
    5757      void addTrigger(Trigger* trig);
     58      void setInvert(int invert) { bInvertMode_ = invert; }
    5859      const Trigger* getTrigger(unsigned int index) const;
    5960      void setVisibility(bool bVisible);
Note: See TracChangeset for help on using the changeset viewer.