Changeset 12252 for code/branches
- Timestamp:
- Mar 28, 2019, 3:09:12 PM (6 years ago)
- Location:
- code/branches/3DPacman_FS19
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/3DPacman_FS19/data/levels/3DPacman.oxw
r12045 r12252 35 35 36 36 <!-- GHOSTS --> 37 <PacmanGhost position="0,10,15" >37 <PacmanGhost position="0,10,15" colour='1'> 38 38 <attached> 39 39 <Model position="0,0,0" mesh="PacmanGhostRed.mesh" scale="5" /> … … 41 41 </PacmanGhost> 42 42 43 <PacmanGhost position="0,10,15" >43 <PacmanGhost position="0,10,15" colour='2'> 44 44 <attached> 45 45 <Model position="0,0,0" mesh="PacmanGhostBlue.mesh" scale="5" /> … … 47 47 </PacmanGhost> 48 48 49 <PacmanGhost position="0,10,15" >49 <PacmanGhost position="0,10,15" colour='3'> 50 50 <attached> 51 51 <Model position="0,0,0" mesh="PacmanGhostOrange.mesh" scale="5" /> … … 53 53 </PacmanGhost> 54 54 55 <PacmanGhost position="0,10,15" >55 <PacmanGhost position="0,10,15" colour='4'> 56 56 <attached> 57 57 <Model position="0,0,0" mesh="PacmanGhostPink.mesh" scale="5" /> -
code/branches/3DPacman_FS19/src/modules/pacman/PacmanGhost.cc
r12009 r12252 47 47 48 48 this->velocity = Vector3(0, 0, 0); 49 49 this->colour = 1; 50 50 this->setCollisionType(CollisionType::Dynamic); 51 51 … … 76 76 { 77 77 SUPER(PacmanGhost, XMLPort, xmlelement, mode); 78 79 XMLPortParam(PacmanGhost, "colour", setColour, getColour, xmlelement, mode); 80 78 81 } 79 82 -
code/branches/3DPacman_FS19/src/modules/pacman/PacmanGhost.h
r11992 r12252 58 58 bool dontmove = false; 59 59 60 //analog AutonomousDrone.h 61 inline void setColour( int newColour ) 62 { this->coulour = newColour; } 63 64 inline int getColour() 65 { return this->coulour;} 66 60 67 private: 61 68 int decision = 0; … … 69 76 int target_z = 0; 70 77 bool lockmove = false; 71 78 int colour=0; 79 /* 80 colour= 81 1: red 82 2: blue 83 3: orange 84 4: pink 85 */ 72 86 void setnewTarget(int firstdec); 73 87 void setnewTarget(int firstdec, int seconddec);
Note: See TracChangeset
for help on using the changeset viewer.