Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 28, 2006, 5:33:20 PM (18 years ago)
Author:
patrick
Message:

collision reaction stuff

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/single_player_map/src/world_entities/door.h

    r8875 r8876  
    1818    virtual void loadParams(const TiXmlElement* root);
    1919
    20     void setAnim(int animationIndex, int animPlaybackMode);
    2120    void setActionRadius(float radius) { this->actionRadius = radius; }
    2221
     
    2625    void close();
    2726
     27    void lock() { this->bLocked = true; }
     28    void unlock() { this->bLocked = false; }
     29    bool isLocked() const { return this->bLocked; }
     30
     31
    2832  private:
    2933    bool checkOpen();
     34    void setAnimation(int animationIndex, int animPlaybackMode);
     35
    3036
    3137  private:
    3238    bool           bOpen;             //!< true if the door is open
     39    bool           bLocked;           //!< true if this door is locked
    3340    float          actionRadius;      //!< action radius
     41
    3442
    3543};
Note: See TracChangeset for help on using the changeset viewer.