source: GTP/trunk/App/Games/Jungle_Rumble/src/Goodie.h @ 1378

Revision 1378, 978 bytes checked in by giegl, 18 years ago (diff)

GTPD - Jungle Rumble - integrate into GTP SVN structure

Line 
1#pragma once
2#include "Object3d.h"
3#include "Weapon.h"
4#include "Player.h"
5#include <stdio.h>
6#include <stdlib.h>
7#include <string.h>
8
9class Goodie :
10        public Object3d
11{
12public:
13        Goodie(void);
14        ~Goodie(void);
15
16        static const int GOODIE_HEALTH  = 0;
17        static const int GOODIE_WEAPON  = 1;
18        static const int GOODIE_AMO             = 2;
19
20        void setGoodieType(int _type);
21        int getGoodieType();
22
23        void loadGoodieMesh();
24        void init();
25
26        virtual void update(float dt);
27
28        void hitByWeapon(Weapon &weapon);
29        void hitByPlayer(Player &player);
30
31        void setHealthAmount(float _healthAmount);
32        void setWeaponType(int _type);
33        void setArmorAmount(int _armorAmount);
34
35        float getHealthAmount();
36        int getWeaponType();
37        int getArmorAmount();
38
39        void setXFile(std::string _filename);
40
41        virtual Node* clone();
42protected:
43        bool firstTime;
44        int goodieType;
45        float healthAmount;
46        int weaponType;
47        int armorAmount;
48        std::string filename;
49        float lifeTime;
50        float yPos;
51};
Note: See TracBrowser for help on using the repository browser.