CField Class Reference
[Client API]

Field for the client. More...

#include <CField.hh>

Inheritance diagram for CField:
Inheritance graph
[legend]

List of all members.

Public Member Functions

const CoordList & getPath (const Coordinates &start, const Coordinates &dest, CPlayer *p)
 Get path from one coordinates to another.

Detailed Description

Field for the client.


Member Function Documentation

const CoordList & CField::getPath ( const Coordinates start,
const Coordinates dest,
CPlayer p 
)

Get path from one coordinates to another.

Returns:
A list of coordinates, describing the path. This list will be empty if no path is found.
Note:
The list is internally allocated and disallocated. Do not try to modify it.

References Coordinates::col, COLS, ScoreCoord::from, Player::getMaRemain(), ScoreCoord::ma, Coordinates::row, and ROWS.

Referenced by CPlayer::move(), Api::moveLength(), and Api::movePossible().


The documentation for this class was generated from the following files:
Generated on Mon Apr 5 21:17:30 2010 for Stechec/TBT by  doxygen 1.6.3