-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathBoots.cpp
More file actions
58 lines (43 loc) · 1.17 KB
/
Boots.cpp
File metadata and controls
58 lines (43 loc) · 1.17 KB
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
52
53
54
55
56
57
58
//================================================//
#include "Boots.hpp"
//================================================//
template<> Boots* Ogre::Singleton<Boots>::msSingleton = 0;
//================================================//
Boots::Boots(void)
{
equipType(BOOTS_TYPE_DEBUG);
}
//================================================//
Boots::~Boots(void)
{
}
//================================================//
void Boots::equipType(unsigned type)
{
if(type == m_equippedType)
return;
m_equippedType = type;
switch(type){
case BOOTS_TYPE_NORMAL:
case BOOTS_TYPE_DEBUG:
default:
m_xMultiplier = m_zMultiplier = 2.50;
m_yMultiplier = 450.0;
m_xAirMultiplier = m_zAirMultiplier = 0.15;
m_gravity.setValue(0.0, -5.1, 0.0);
break;
case BOOTS_TYPE_VELOCITY:
m_xMultiplier = m_zMultiplier = 3.50;
m_yMultiplier = 500.0;
m_xAirMultiplier = m_zAirMultiplier = 0.60;
m_gravity.setValue(0.0, -4.3, 0.0);
break;
case BOOTS_TYPE_HIGH:
m_xMultiplier = m_zMultiplier = 2.50;
m_yMultiplier = 2500.0;
m_xAirMultiplier = m_zAirMultiplier = 0.5;
m_gravity.setValue(0.0, -8.80, 0.0);
break;
}
}
//================================================//