- Timestamp:
- Dec 10, 2014, 4:15:08 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/minigame4DHS14/src/modules/mini4Dgame/Mini4Dgame.cc
r10156 r10168 54 54 55 55 SetConsoleCommand("Mini4Dgame", "setStone", &Mini4Dgame::setStone).addShortcut(); 56 SetConsoleCommand("Mini4Dgame", "undoStone", &Mini4Dgame::undoStone).addShortcut(); 56 57 57 58 RegisterUnloadableClass(Mini4Dgame); … … 66 67 67 68 this->board_ = 0; 68 //ConsoleCommand("Mini4Dgame", "setStone", &Mini4Dgame::setStone).addShortcut().setAsInputCommand();69 69 70 70 // Set the type of Bots for this particular Gametype. … … 88 88 void Mini4Dgame::cleanup() 89 89 { 90 90 if(this->board_ != NULL)// Destroy the board, if present. 91 { 92 //this->board_->destroy(); 93 this->board_ = 0; 94 } 91 95 } 92 96 … … 177 181 } 178 182 183 void Mini4Dgame::undoStone()//Vector4 move, const int playerColor) 184 { 185 ObjectList<Mini4DgameBoard>::iterator it = ObjectList<Mini4DgameBoard>::begin(); 186 it->undoMove(); 187 } 188 179 189 //void Mini4Dgame::setStone(Vector4 move, const int playerColor, Mini4DgameBoard* board) 180 190 void Mini4Dgame::setStone(int x,int y,int z,int w)//Vector4 move, const int playerColor) … … 182 192 Vector4 move = Vector4(x,y,z,w); 183 193 ObjectList<Mini4DgameBoard>::iterator it = ObjectList<Mini4DgameBoard>::begin(); 184 it->makeMove(move,1);//playerColor);194 it->makeMove(move); 185 195 } 186 196
Note: See TracChangeset
for help on using the changeset viewer.