forked from Milez213/CityTrial
-
Notifications
You must be signed in to change notification settings - Fork 0
/
GamePointObject.h
51 lines (37 loc) · 899 Bytes
/
GamePointObject.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
49
50
51
//
// GamePointObject.h
//
//
// Created by Bryan Bell on 3/10/13.
//
//
#ifndef ____GamePointObject__
#define ____GamePointObject__
#include <iostream>
#include "GameKartObject.h"
#include "GameDrawableObject.h"
#define STAND 0
#define PICKUP 1
#define CATCH 2
class GamePointObject : public GameDrawableObject {
public:
GamePointObject(int pointValue);
virtual void update(float dt);
virtual void onCollide(GameKartObject *other);
int getPoints() { return points; };
void setPoints(int p) { points = p; };
int getState() { return state; };
void setBase(vec3 b) { basePosition = b; };
bool pickUp() {
if (state == CATCH)
return true;
else
return false; };
private:
int points;
int state;
float time;
vec3 basePosition;
GameKartObject *aim;
};
#endif /* defined(____GamePointObject__) */