-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathEntity.h
More file actions
50 lines (37 loc) · 874 Bytes
/
Entity.h
File metadata and controls
50 lines (37 loc) · 874 Bytes
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
/***************************************************
Entity.h
Header file for Entity Class
CPSC8170 - Proj 1 GBG 8/2013
****************************************************/
#ifndef _ENTITY_H_
#define _ENTITY_H_
#include "Attributes.h"
#include "Model.h"
class Entity : public Model { // entity is a model but has various variables to it...
private:
int Rest;
int Stop;
int Step;
int Start;
double Radius;
public:
Attributes A;
// Constructor
Entity();
// Setters
void SetRest(int type);
void SetStop(int type);
void SetStart(int type);
void SetStep(int type);
void SetRadius(double r);
// Getters
int IsRest();
int IsStop();
int IsStart();
int IsStep();
double GetRadius();
// Functions
// FOR SECOND PROJECT:
int CheckCollision(Vector3d pcen, Vector3d pvel, Vector3d pnewcen);
};
#endif