|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Bot
Represents one bot for the game. All classes that implement a Bot :
BotImage
representing the image of the bot.
BotNumber
that specify the preferred number of bot of the
same army.
init called with a context
during the initialisation of the bot.
run called once by the game on the thread
associated to the bot.
destroy called by the game
when the bot die. This call may occured when the bot
run.
context is a facade
of the game that the bot used to ask some informations or
to act on the arena.
| Method Summary | |
|---|---|
void |
destroy()
Called by the game to indicated that the current bot is dead. |
void |
init(BotContext context)
Called by the game to initialise a bot with the context. |
void |
run()
Called by the game in a bot specific thread. |
| Method Detail |
|---|
void init(BotContext context)
context - facade object that permit interaction between
the current bot and the game.void run()
void destroy()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||