-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathAbstractEntity.h
51 lines (40 loc) · 1.04 KB
/
AbstractEntity.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
//
// AbstractEntity.h
// EG-TD
//
// Created by Gurcan Yavuz on 10/8/11.
// Copyright 2011 __MyCompanyName__. All rights reserved.
//
#import <Foundation/Foundation.h>
//Temporary
//#import "CommonOpenGL.h"
#import "GameScene.h"
//@class GameScene;
// Entity states
enum entityState {
kEntity_Idle = 0,
kEntity_Dead = 1,
kEntity_Alive = 2
};
@interface AbstractEntity : NSObject {
EGVertex3D otherBall;
// Entity position
EGVertex3D position;
// Velocity
EGVertex3D velocity;
// Entity state
EGColor color;
GLuint entityState;
// Do we have a reference to the current scene
BOOL _gotScene;
}
@property (nonatomic, assign) EGVertex3D otherBall;
@property (nonatomic, assign) EGColor color;
@property (nonatomic, assign) EGVertex3D position;
@property (nonatomic, assign) EGVertex3D velocity;
@property (nonatomic, assign) GLuint entityState;
// Selector that updates the entities logic i.e. location, collision status etc
- (void)update:(GLfloat)delta;
// Selector that renders the entity
- (void)render;
@end