Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/branches/spaceshipcontrol/src/world_entities/space_ships/space_ship.h @ 5881

Last change on this file since 5881 was 5880, checked in by bensch, 19 years ago

controll compile

File size: 1.7 KB
RevLine 
[5878]1/*!
2 * @file space_ship.h
3 * Implements the Control of a Spaceship
4 */
5
[5880]6#ifndef _SPACE_SHIP_H
7#define _SPACE_SHIP_H
[5878]8
9#include "playable.h"
10
11template<class T> class tList;
12class Vector;
13class Event;
14
15class SpaceShip : public Playable
16{
[5880]17
[5878]18  public:
[5880]19
[5878]20    SpaceShip();
21    SpaceShip(const char* fileName);
22    SpaceShip(const TiXmlElement* root);
23    virtual ~SpaceShip();
[5880]24
[5878]25    void init();
26    void loadParams(const TiXmlElement* root);
[5880]27
[5878]28    void addWeapon(Weapon* weapon );
29    void removeWeapon(Weapon* weapon);
[5880]30
[5878]31    virtual void postSpawn();
32    virtual void leftWorld();
[5880]33
[5878]34    virtual void collidesWith(WorldEntity* entity, const Vector& location);
35    virtual void tick(float time);
36    virtual void draw() const;
37
[5880]38    virtual void process(const Event &event);
39
40
41
[5878]42  private:
[5880]43
[5878]44    void move(float time);
45    void weaponAction();
46
47    // !! temporary !!
48    void ADDWEAPON();
[5880]49
[5878]50    bool                  bUp;                //!< up button pressed.
51    bool                  bDown;              //!< down button pressed.
52    bool                  bLeft;              //!< left button pressed.
53    bool                  bRight;             //!< right button pressed.
54    bool                  bAscend;            //!< ascend button pressed.
55    bool                  bDescend;           //!< descend button presses.
56    bool                  bFire;              //!< fire button pressed.
57
58    Vector                velocity;           //!< the velocity of the player.
59    float                 travelSpeed;        //!< the current speed of the player (to make soft movement)
60    float                 acceleration;       //!< the acceleration of the player.
61
62};
63
[5880]64#endif /* _SPACE_SHIPS_H */
Note: See TracBrowser for help on using the repository browser.