Changeset 12252 for code/branches/3DPacman_FS19/src/modules
- Timestamp:
- Mar 28, 2019, 3:09:12 PM (6 years ago)
- Location:
- code/branches/3DPacman_FS19/src/modules/pacman
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
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.