forked from Milez213/CityTrial
-
Notifications
You must be signed in to change notification settings - Fork 0
/
GameUpgradeObject.h
48 lines (33 loc) · 949 Bytes
/
GameUpgradeObject.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
//
// GameUpgradeObject.h
//
//
// Created by Bryan Bell on 1/30/13.
//
//
#ifndef ____GameUpgradeObject__
#define ____GameUpgradeObject__
#include <iostream>
#include <string>
#include "GameDrawableObject.h"
#include "GameKartObject.h"
#include "SoundManager.h"
class GameUpgradeObject : public GameDrawableObject
{
public:
//enum Type {FLIGHT, GRIP, TURNING, SPEED};
//GameUpgradeObject(Type initType);
GameUpgradeObject(const char *objFile);
virtual void update(float dt);
virtual void onCollide(GameDrawableObject *other, float dt);
virtual void addToKart(GameKartObject *kart) = 0;
virtual void playPickupSound();
//Type upgradeType() { return type; };
string getName() { return upgradeName; };
void setName(string name) { upgradeName = name; };
private:
//Type type;
GameSound *pickup_sound;
string upgradeName;
};
#endif /* defined(____GameUpgradeObject__) */