Changeset 9858 for code/branches/invaders/src/modules/invader
- Timestamp:
- Dec 2, 2013, 4:08:30 PM (11 years ago)
- Location:
- code/branches/invaders/src/modules/invader
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/invaders/src/modules/invader/Invader.cc
r9854 r9858 98 98 } 99 99 100 void Invader::costLife() 101 { 102 lives--; 103 multiplier = 0; 104 if (lives <= 0) end(); 105 }; 106 100 107 void Invader::comboControll() 101 108 { -
code/branches/invaders/src/modules/invader/Invader.h
r9854 r9858 68 68 int getMultiplier(){return this->multiplier;} 69 69 70 void costLife() {lives--; if (lives <= 0) end();};70 void costLife(); 71 71 void levelUp(){level++;} 72 72 void addPoints(int numPoints){point += numPoints * multiplier; b_combo = true;} -
code/branches/invaders/src/modules/invader/InvaderEnemy.cc
r9854 r9858 68 68 inline bool InvaderEnemy::collidesAgainst(WorldEntity* otherObject, btManifoldPoint& contactPoint) 69 69 { 70 setVelocity(Vector3(1000,0,0));70 // setVelocity(Vector3(1000,0,0)); 71 71 removeHealth(2000); 72 72 return false;
Note: See TracChangeset
for help on using the changeset viewer.