Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/branches/single_player_map/src/world_entities/npcs/repair_station.h @ 8941

Last change on this file since 8941 was 8941, checked in by patrick, 18 years ago

isOnGround bug found and repair station workd

File size: 1.2 KB
Line 
1#ifndef _REPAIR_STATION_H
2#define _REPAIR_STATION_H
3
4#include "world_entity.h"
5
6#include "md2/md2Model.h"
7
8class TiXmlElement;
9
10
11//! animation names enumeration
12typedef enum RepairStationAnimType
13{
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,
22
23  REPAIR_MAX_ANIMATIONS
24};
25
26
27class RepairStation : public WorldEntity
28{
29  public:
30    RepairStation ();
31    RepairStation(const TiXmlElement* root);
32    virtual ~RepairStation ();
33
34    virtual void loadParams(const TiXmlElement* root);
35
36    void setActionRadius(float radius) { this->actionRadius = radius; }
37    void setScale(float scale) { this->scale = scale; }
38
39    void activate();
40    void deactivate();
41    void toggleRotation();
42
43    virtual void tick (float time);
44
45
46  private:
47    void setAnimation(int animNum, int playbackMode = 0);
48
49
50  private:
51    float          scale;             //!< the scale of the model
52
53    static sAnim   animationList[8];  //!< list of the animations
54
55    int            animationCurrent;  //!< number of the current animation
56    int            animationStep;     //!< the incrementation step of the animation
57
58};
59
60#endif /* _REPAIR_STATION_H */
Note: See TracBrowser for help on using the repository browser.