duncan
Mom and Dad were wrong!
Public Member Functions | Public Attributes | Protected Attributes
server::Character Class Reference

#include <character.h>

Inheritance diagram for server::Character:
Inheritance graph
[legend]
Collaboration diagram for server::Character:
Collaboration graph
[legend]

List of all members.

Public Member Functions

void set_pos (double, double)
void set_name (const std::string &)
double row ()
double col ()
const std::string & name ()
virtual bool can_find_path ()

Public Attributes

net::index_t index

Protected Attributes

std::string name_
double row_
double col_

Detailed Description

Store information about a character.

Author:
Harry Slatyer
Malcolm Gill

see LICENSE


Member Function Documentation

bool Character::can_find_path ( ) [virtual]
Returns:
true iff this Character can be called upon for pathfinding, which is the case for Players but not for NPCs.
Note:
please only return true if you are a Player please

Reimplemented in server::Player.

double Character::row ( )

Get the character's row, column or name.

void Character::set_name ( const std::string &  name)

Set the character's name.

Parameters:
namecharacter's name
void Character::set_pos ( double  r,
double  c 
)

Set the position of the character.

Parameters:
rrow
ccolumn

Member Data Documentation

Uniquely identifies this Character within a World; the World takes all responsibility for setting/using this value.


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