Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/trunk/src/world_entities/weapons/spike_launcher.h @ 10472

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

merged the branche playability into the trunk

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 t, 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.