Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 30, 2006, 12:20:28 AM (18 years ago)
Author:
patrick
Message:

repair station work, collision reaction

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/single_player_map/src/world_entities/npcs/repair_station.h

    r8927 r8931  
    1212typedef enum RepairStationAnimType
    1313{
    14   STATION_OPEN = 0,
    15   STATION_CLOSE,
     14  REPAIR_CYCLE01 = 0,
     15  REPAIR_CYCLE02,
     16  REPAIR_CYCLE03,
     17  REPAIR_CYCLE04,
     18  REPAIR_CYCLE05,
     19  REPAIR_CYCLE06,
     20  REPAIR_CYCLE07,
     21  REPAIR_CYCLE08,
    1622
    1723  DOOR_MAX_ANIMATIONS
     
    3137    void setScale(float scale) { this->scale = scale; }
    3238
    33     void open();
    34     void close();
    35 
    36     void lock() { this->bLocked = true; }
    37     void unlock() { this->bLocked = false; }
    38     bool isLocked() const { return this->bLocked; }
    39 
    40 
    4139    virtual void tick (float time);
    4240
    4341
    4442  private:
    45     bool checkOpen();
    4643    void setAnimation(int animNum, int playbackMode = 0);
    4744
    4845
    4946  private:
    50     bool           bOpen;             //!< true if the door is open
    51     bool           bLocked;           //!< true if this door is locked
    52     float          actionRadius;      //!< action radius
    5347    float          scale;             //!< the scale of the model
    5448
    55     static sAnim   animationList[2];  //!< list of the animations
     49    static sAnim   animationList[8];  //!< list of the animations
    5650
    5751
Note: See TracChangeset for help on using the changeset viewer.