idle_ai Class Reference

A trivial ai that sits around doing absolutely nothing. More...

Inheritance diagram for idle_ai:

Inheritance graph
[legend]
Collaboration diagram for idle_ai:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 idle_ai (info &i)
void play_turn ()
 Function that is called when the AI must play its turn.


Detailed Description

A trivial ai that sits around doing absolutely nothing.

Definition at line 51 of file ai.cpp.


Constructor & Destructor Documentation

idle_ai::idle_ai ( info i  )  [inline]

Definition at line 53 of file ai.cpp.


Member Function Documentation

void idle_ai::play_turn (  )  [inline, virtual]

Function that is called when the AI must play its turn.

Derived classes should implement their AI algorithm in this function.

Implements ai_interface.

Definition at line 54 of file ai.cpp.

References game_events::fire().


The documentation for this class was generated from the following file:

Generated by doxygen 1.5.5 on 23 May 2008 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs