duncan
Mom and Dad were wrong!
Public Member Functions
server::PathWorld Class Reference

#include <pathworld.h>

Inheritance diagram for server::PathWorld:
Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual size_t width () const
virtual size_t height () const
virtual bool is_vacant (double r, double c, Character *ignore) const

Detailed Description

Interface for a world which can do path-finding.

Author:
Harry Slatyer

see LICENSE


Member Function Documentation

virtual size_t server::PathWorld::height ( ) const [inline, virtual]

Get the height of the world's map.

Returns:
map height

Reimplemented in server::World.

virtual bool server::PathWorld::is_vacant ( double  r,
double  c,
Character ignore 
) const [inline, virtual]

Determine whether a given tile is vacantoccupied.

Parameters:
rrow of tile
ccol of tile
ignorecharacter to ingore
Returns:
true iff the tile is vacant or occupied only by the ignored character

Reimplemented in server::World.

virtual size_t server::PathWorld::width ( ) const [inline, virtual]

Get the width of the world's map.

Returns:
map width

Reimplemented in server::World.


The documentation for this class was generated from the following file:
 All Classes Namespaces Functions Variables Typedefs Enumerations