Revision 1378,
928 bytes
checked in by giegl, 18 years ago
(diff) |
GTPD - Jungle Rumble - integrate into GTP SVN structure
|
Rev | Line | |
---|
[1378] | 1 | #pragma once
|
---|
| 2 | #include "bullet.h"
|
---|
| 3 | #include "NxPhysics.h"
|
---|
| 4 | #include <string>
|
---|
| 5 |
|
---|
| 6 | class Object3d;
|
---|
| 7 | class Player;
|
---|
| 8 | class Goodie;
|
---|
| 9 |
|
---|
| 10 | class SimpleBullet :
|
---|
| 11 | public Bullet
|
---|
| 12 | {
|
---|
| 13 | public:
|
---|
| 14 | SimpleBullet(void);
|
---|
| 15 | ~SimpleBullet(void);
|
---|
| 16 |
|
---|
| 17 | static const int TYPE_MG = 0;
|
---|
| 18 | static const int TYPE_BOMB = 1;
|
---|
| 19 | static const int TYPE_ALIEN = 2;
|
---|
| 20 |
|
---|
| 21 | virtual void initBullet();
|
---|
| 22 | virtual void impactPlayer(Player* player, Vector normal);
|
---|
| 23 | virtual void impactTerrain(Vector normal);
|
---|
| 24 | virtual void impactGoodie(Goodie* goodie, Vector normal);
|
---|
| 25 | virtual void impactOther(Object3d* other, Vector normal);
|
---|
| 26 | virtual void impactTimeOut();
|
---|
| 27 |
|
---|
| 28 | virtual void update(float dt);
|
---|
| 29 | virtual Node* clone();
|
---|
| 30 | virtual void killMe();
|
---|
| 31 |
|
---|
| 32 | void setXFile(std::string _filename);
|
---|
| 33 | void setSpeed(float _speed);
|
---|
| 34 | protected:
|
---|
| 35 | std::string filename;
|
---|
| 36 | float speed;
|
---|
| 37 | Object3d* bulletObj;
|
---|
| 38 | void createPActor();
|
---|
| 39 | float spriteTimer;
|
---|
| 40 |
|
---|
| 41 | void createParticleEffect();
|
---|
| 42 | };
|
---|
Note: See
TracBrowser
for help on using the repository browser.