git.ucc.asn.au
/
progcomp2012.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
pause AI in opponent's turn (Temporary)
[progcomp2012.git]
/
judge
/
manager
/
game.cpp
diff --git
a/judge/manager/game.cpp
b/judge/manager/game.cpp
index
486920d
..
8d3eef0
100644
(file)
--- a/
judge/manager/game.cpp
+++ b/
judge/manager/game.cpp
@@
-498,7
+498,8
@@
MovementResult Game::Play()
#endif //BUILD_GRAPHICS
turn = Piece::RED;
#endif //BUILD_GRAPHICS
turn = Piece::RED;
-
+ blue->Pause();
+ red->Continue();
if (!Board::HaltResult(result))
{
result = CheckVictoryAttrition();
if (!Board::HaltResult(result))
{
result = CheckVictoryAttrition();
@@
-542,7
+543,8
@@
MovementResult Game::Play()
turn = Piece::BLUE;
turn = Piece::BLUE;
-
+ red->Pause();
+ blue->Continue();
if (!Board::HaltResult(result))
{
result = CheckVictoryAttrition();
if (!Board::HaltResult(result))
{
result = CheckVictoryAttrition();
UCC
git Repository :: git.ucc.asn.au