Aivolution AI:

- cleaned up debug messages

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1757 4a71c877-e1ca-e34f-864e-861f7616d084
master
Roman C 2007-05-29 17:56:51 +00:00
parent 2e5aa11c29
commit fb6e1cbfd1
8 changed files with 32 additions and 144 deletions

View File

@ -519,8 +519,6 @@ function void shutDown()
{
bRunning = FALSE; //remember this AI is inactive
console(getPlayerName(me) & " deactivated");
notifyPlayerDead(me);
setEventTrigger(selftest, inactive); //Start
@ -9959,33 +9957,21 @@ event consoleEv(consoleTr)
if(not bRunning) //make sure current machine is responsible for this AI and it's not already active
{
console(getPlayerName(me) & " activated");
mainInitialize();
}
else
{
console(getPlayerName(me) & " is already running");
}
}
else
{
console(selectedPlayer & " is not responsible for " & me);
}
}
else
{
console("debug mode failed");
}
}
else
{
console("string failed");
}
//turn off 'autogames'
if(cstr == "autogame off" && debugModeEnabled() && (msgPlayer2 == me))
{
if(bRunning) //make sure this AI is active
{
console(getPlayerName(me) & " deactivated");
shutDown();
}
}

View File

@ -519,8 +519,6 @@ function void shutDown()
{
bRunning = FALSE; //remember this AI is inactive
console(getPlayerName(me) & " deactivated");
notifyPlayerDead(me);
setEventTrigger(selftest, inactive); //Start
@ -9959,33 +9957,21 @@ event consoleEv(consoleTr)
if(not bRunning) //make sure current machine is responsible for this AI and it's not already active
{
console(getPlayerName(me) & " activated");
mainInitialize();
}
else
{
console(getPlayerName(me) & " is already running");
}
}
else
{
console(selectedPlayer & " is not responsible for " & me);
}
}
else
{
console("debug mode failed");
}
}
else
{
console("string failed");
}
//turn off 'autogames'
if(cstr == "autogame off" && debugModeEnabled() && (msgPlayer2 == me))
{
if(bRunning) //make sure this AI is active
{
console(getPlayerName(me) & " deactivated");
shutDown();
}
}

View File

@ -519,8 +519,6 @@ function void shutDown()
{
bRunning = FALSE; //remember this AI is inactive
console(getPlayerName(me) & " deactivated");
notifyPlayerDead(me);
setEventTrigger(selftest, inactive); //Start
@ -9959,33 +9957,21 @@ event consoleEv(consoleTr)
if(not bRunning) //make sure current machine is responsible for this AI and it's not already active
{
console(getPlayerName(me) & " activated");
mainInitialize();
}
else
{
console(getPlayerName(me) & " is already running");
}
}
else
{
console(selectedPlayer & " is not responsible for " & me);
}
}
else
{
console("debug mode failed");
}
}
else
{
console("string failed");
}
//turn off 'autogames'
if(cstr == "autogame off" && debugModeEnabled() && (msgPlayer2 == me))
{
if(bRunning) //make sure this AI is active
{
console(getPlayerName(me) & " deactivated");
shutDown();
}
}

View File

@ -519,8 +519,6 @@ function void shutDown()
{
bRunning = FALSE; //remember this AI is inactive
console(getPlayerName(me) & " deactivated");
notifyPlayerDead(me);
setEventTrigger(selftest, inactive); //Start
@ -9959,33 +9957,21 @@ event consoleEv(consoleTr)
if(not bRunning) //make sure current machine is responsible for this AI and it's not already active
{
console(getPlayerName(me) & " activated");
mainInitialize();
}
else
{
console(getPlayerName(me) & " is already running");
}
}
else
{
console(selectedPlayer & " is not responsible for " & me);
}
}
else
{
console("debug mode failed");
}
}
else
{
console("string failed");
}
//turn off 'autogames'
if(cstr == "autogame off" && debugModeEnabled() && (msgPlayer2 == me))
{
if(bRunning) //make sure this AI is active
{
console(getPlayerName(me) & " deactivated");
shutDown();
}
}

View File

@ -519,8 +519,6 @@ function void shutDown()
{
bRunning = FALSE; //remember this AI is inactive
console(getPlayerName(me) & " deactivated");
notifyPlayerDead(me);
setEventTrigger(selftest, inactive); //Start
@ -9959,33 +9957,21 @@ event consoleEv(consoleTr)
if(not bRunning) //make sure current machine is responsible for this AI and it's not already active
{
console(getPlayerName(me) & " activated");
mainInitialize();
}
else
{
console(getPlayerName(me) & " is already running");
}
}
else
{
console(selectedPlayer & " is not responsible for " & me);
}
}
else
{
console("debug mode failed");
}
}
else
{
console("string failed");
}
//turn off 'autogames'
if(cstr == "autogame off" && debugModeEnabled() && (msgPlayer2 == me))
{
if(bRunning) //make sure this AI is active
{
console(getPlayerName(me) & " deactivated");
shutDown();
}
}

View File

@ -519,8 +519,6 @@ function void shutDown()
{
bRunning = FALSE; //remember this AI is inactive
console(getPlayerName(me) & " deactivated");
notifyPlayerDead(me);
setEventTrigger(selftest, inactive); //Start
@ -9959,33 +9957,21 @@ event consoleEv(consoleTr)
if(not bRunning) //make sure current machine is responsible for this AI and it's not already active
{
console(getPlayerName(me) & " activated");
mainInitialize();
}
else
{
console(getPlayerName(me) & " is already running");
}
}
else
{
console(selectedPlayer & " is not responsible for " & me);
}
}
else
{
console("debug mode failed");
}
}
else
{
console("string failed");
}
//turn off 'autogames'
if(cstr == "autogame off" && debugModeEnabled() && (msgPlayer2 == me))
{
if(bRunning) //make sure this AI is active
{
console(getPlayerName(me) & " deactivated");
shutDown();
}
}

View File

@ -519,8 +519,6 @@ function void shutDown()
{
bRunning = FALSE; //remember this AI is inactive
console(getPlayerName(me) & " deactivated");
notifyPlayerDead(me);
setEventTrigger(selftest, inactive); //Start
@ -9959,33 +9957,21 @@ event consoleEv(consoleTr)
if(not bRunning) //make sure current machine is responsible for this AI and it's not already active
{
console(getPlayerName(me) & " activated");
mainInitialize();
}
else
{
console(getPlayerName(me) & " is already running");
}
}
else
{
console(selectedPlayer & " is not responsible for " & me);
}
}
else
{
console("debug mode failed");
}
}
else
{
console("string failed");
}
//turn off 'autogames'
if(cstr == "autogame off" && debugModeEnabled() && (msgPlayer2 == me))
{
if(bRunning) //make sure this AI is active
{
console(getPlayerName(me) & " deactivated");
shutDown();
}
}

View File

@ -519,8 +519,6 @@ function void shutDown()
{
bRunning = FALSE; //remember this AI is inactive
console(getPlayerName(me) & " deactivated");
notifyPlayerDead(me);
setEventTrigger(selftest, inactive); //Start
@ -9959,33 +9957,21 @@ event consoleEv(consoleTr)
if(not bRunning) //make sure current machine is responsible for this AI and it's not already active
{
console(getPlayerName(me) & " activated");
mainInitialize();
}
else
{
console(getPlayerName(me) & " is already running");
}
}
else
{
console(selectedPlayer & " is not responsible for " & me);
}
}
else
{
console("debug mode failed");
}
}
else
{
console("string failed");
}
//turn off 'autogames'
if(cstr == "autogame off" && debugModeEnabled() && (msgPlayer2 == me))
{
if(bRunning) //make sure this AI is active
{
console(getPlayerName(me) & " deactivated");
shutDown();
}
}