-
Notifications
You must be signed in to change notification settings - Fork 0
/
collision.c
39 lines (32 loc) · 899 Bytes
/
collision.c
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
#include "collision.h"
#include <tari/collisionhandler.h>
static struct {
int mShotCollisionList;
int mMirklingCollisionList;
int mPreciousPeopleCollisionList;
} gData;
void loadMirklingsCollisions()
{
gData.mShotCollisionList = addCollisionListToHandler();
gData.mMirklingCollisionList = addCollisionListToHandler();
gData.mPreciousPeopleCollisionList = addCollisionListToHandler();
addCollisionHandlerCheck(gData.mShotCollisionList, gData.mMirklingCollisionList);
addCollisionHandlerCheck(gData.mPreciousPeopleCollisionList, gData.mMirklingCollisionList);
}
int getShotCollisionList()
{
return gData.mShotCollisionList;
}
int getMirklingsCollisionList()
{
return gData.mMirklingCollisionList;
}
int getPreciousPeopleCollisionList()
{
return gData.mPreciousPeopleCollisionList;
}
CollisionData makeCollisionData(int tType) {
CollisionData ret;
ret.mType = tType;
return ret;
}