Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/branches/playability/src/world_entities/weapons/spike_launcher.h @ 10188

Last change on this file since 10188 was 10188, checked in by nicolasc, 17 years ago

updated spikeball/spike combo; still need to turn a projectile into a spaceship
swarmmissile turns again, but flickers

File size: 710 bytes
Line 
1/*!
2 * @file spike_launcher.h
3*/
4
5
6#ifndef _SPIKE_LAUNCHER_H
7#define _SPIKE_LAUNCHER_H
8
9#include "weapon.h"
10
11#define SPIKE_LAUNCHER_MAXRANGE = 500.0;
12
13class SpikeLauncher : public Weapon
14  {
15  ObjectListDeclaration(SpikeLauncher);
16  public:
17    SpikeLauncher ();
18    SpikeLauncher(const TiXmlElement* root);
19    virtual ~SpikeLauncher ();
20
21    void init();
22    virtual void loadParams(const TiXmlElement* root);
23
24    virtual void activate();
25    virtual void deactivate();
26
27    virtual void tick(float dt);
28    virtual void fire();
29
30    virtual void updateFireDir(Vector v, float angle);
31
32  private:
33
34  int           spikes;
35  Vector*       launcher;
36  float         size;
37  };
38
39#endif /* _SPIKE_LAUNCHER_H */
Note: See TracBrowser for help on using the repository browser.