Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

door animation even nicer implemented

File:
1 edited

Legend:

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

    r8879 r8880  
    44#include "world_entity.h"
    55
     6#include "md2/md2Model.h"
    67
    78class TiXmlElement;
     9
     10
     11//! animation names enumeration
     12typedef enum DoorAnimType
     13{
     14  OPEN = 0,
     15  CLOSE,
     16
     17  MAX_ANIMATIONS
     18};
    819
    920
     
    2031    void setActionRadius(float radius) { this->actionRadius = radius; }
    2132
    22     virtual void tick (float time);
    23 
    2433    void open();
    2534    void close();
     
    3039
    3140
     41    virtual void tick (float time);
     42
     43
    3244  private:
    3345    bool checkOpen();
    34     void setAnimation(int firstFrame, int lastFrame, int fps, int bStoppable, int animPlayback);
     46    void setAnimation(int animNum, int playbackMode = 0);
    3547
    3648
     
    4052    float          actionRadius;      //!< action radius
    4153
     54    static sAnim   animationList[2];  //!< list of the animations
    4255
    4356};
Note: See TracChangeset for help on using the changeset viewer.