Added an function to be overriden if you want AI board summaries
automatically generated git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3948 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -130,7 +130,7 @@ public abstract class PuzzleManager extends GameManager
|
||||
{
|
||||
if (_puzobj.summaries != null) {
|
||||
for (int ii = 0; ii < _puzobj.summaries.length; ii++) {
|
||||
if (!isAI(ii)) {
|
||||
if (!isAI(ii) || summarizeAIBoard()) {
|
||||
updateBoardSummary(ii);
|
||||
}
|
||||
}
|
||||
@@ -160,6 +160,14 @@ public abstract class PuzzleManager extends GameManager
|
||||
updateStatus();
|
||||
}
|
||||
|
||||
/**
|
||||
* Override to have board summaries for AIs automatically generated.
|
||||
*/
|
||||
protected boolean summarizeAIBoard ()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
// documentation inherited
|
||||
protected Class getPlaceObjectClass ()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user