author | truebrain |
Sun, 24 Feb 2008 23:00:00 +0000 | |
branch | noai |
changeset 9756 | 7e637829cbd3 |
parent 9749 | ee414c031e73 |
child 9833 | 89a64246458f |
permissions | -rw-r--r-- |
9450
d675836e865c
(svn r9278) [NoAI] -Add: added AISettings which adds the function to control the Delay-value on DoCommands
truelight
parents:
diff
changeset
|
1 |
/* $Id$ */ |
d675836e865c
(svn r9278) [NoAI] -Add: added AISettings which adds the function to control the Delay-value on DoCommands
truelight
parents:
diff
changeset
|
2 |
|
d675836e865c
(svn r9278) [NoAI] -Add: added AISettings which adds the function to control the Delay-value on DoCommands
truelight
parents:
diff
changeset
|
3 |
/** @file ai_settings.cpp everything to change AI settings */ |
d675836e865c
(svn r9278) [NoAI] -Add: added AISettings which adds the function to control the Delay-value on DoCommands
truelight
parents:
diff
changeset
|
4 |
|
d675836e865c
(svn r9278) [NoAI] -Add: added AISettings which adds the function to control the Delay-value on DoCommands
truelight
parents:
diff
changeset
|
5 |
#include "ai_settings.hpp" |
d675836e865c
(svn r9278) [NoAI] -Add: added AISettings which adds the function to control the Delay-value on DoCommands
truelight
parents:
diff
changeset
|
6 |
|
9749
ee414c031e73
(svn r12229) [NoAI] -Fix: AISetting()s functions can be static too
truebrain
parents:
9450
diff
changeset
|
7 |
/* static */ void AISettings::SetCommandDelay(uint ticks) |
9450
d675836e865c
(svn r9278) [NoAI] -Add: added AISettings which adds the function to control the Delay-value on DoCommands
truelight
parents:
diff
changeset
|
8 |
{ |
d675836e865c
(svn r9278) [NoAI] -Add: added AISettings which adds the function to control the Delay-value on DoCommands
truelight
parents:
diff
changeset
|
9 |
if (ticks == 0) return; |
9749
ee414c031e73
(svn r12229) [NoAI] -Fix: AISetting()s functions can be static too
truebrain
parents:
9450
diff
changeset
|
10 |
AIObject::SetDoCommandDelay(ticks); |
9450
d675836e865c
(svn r9278) [NoAI] -Add: added AISettings which adds the function to control the Delay-value on DoCommands
truelight
parents:
diff
changeset
|
11 |
} |