Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 1924 in orxonox.OLD for orxonox/trunk/core/shoot_rocket.h


Ignore:
Timestamp:
Jun 8, 2004, 6:30:23 PM (20 years ago)
Author:
bensch
Message:

orxonox/truk/core: added support for different types of rockets, and implemented Side-Accelerators :) I think they really rock.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/core/shoot_rocket.h

    r1921 r1924  
    1010#include "npc.h"
    1111
     12enum RocketType { HOMING, SIDEACC, BACKPARABLE};
     13enum RocketDirection {LEFT, RIGHT, UP, DOWN};
     14
    1215class ShootRocket {
    1316
     
    1720  /* a list of all shoot-amental objects */
    1821  struct shoot {
     22    enum RocketType type;
    1923    shoot *next;
    2024    float xCor;
     
    3943  void drawShoot(void);
    4044  void addShoot(shoot* sh);
    41   void addShoot(float x, float y, float z);
    42   void addShootExt(float x, float y, float z, float xVel, float yVel, float zVel);
     45  void addBackParable(float x, float y, float z);
     46  void addSideAcc(float x, float y, float z, enum RocketDirection direction);
    4347  void setShootStep(float step);
    4448  void removeShoot(shoot* sh);
Note: See TracChangeset for help on using the changeset viewer.