Map Class Reference

Contains all information about a map, holds reference to contained Characters and manages NPCs on it. More...

#include <eoserv.hpp>

List of all members.

Public Member Functions

 Map (int id)
int GenerateItemID ()
void Enter (Character *, int animation=WARP_ANIMATION_NONE)
void Leave (Character *, int animation=WARP_ANIMATION_NONE)
void Msg (Character *from, std::string message)
bool Walk (Character *from, int direction, bool admin=false)
void Attack (Character *from, int direction)
void Face (Character *from, int direction)
void Sit (Character *from, int sit_type)
void Stand (Character *from)
void Emote (Character *from, int emote)
bool OpenDoor (Character *from, int x, int y)
Map_ItemAddItem (int id, int amount, int x, int y, Character *from=0)
void DelItem (int uid, Character *from=0)
bool InBounds (int x, int y)
bool Walkable (int x, int y)
Map_Tile::TileSpec GetSpec (int x, int y)
Map_WarpGetWarp (int x, int y)

Public Attributes

int id
char rid [4]
bool pk
int filesize
int width
int height
std::string filename
std::list< Character * > characters
std::list< NPC * > npcs
std::list< Map_Itemitems
std::map< int, std::map< int,
Map_Tile > > 
tiles
bool exists


Detailed Description

Contains all information about a map, holds reference to contained Characters and manages NPCs on it.

Constructor & Destructor Documentation

Map::Map ( int  id  ) 


Member Function Documentation

int Map::GenerateItemID (  ) 

void Map::Enter ( Character ,
int  animation = WARP_ANIMATION_NONE 
)

void Map::Leave ( Character ,
int  animation = WARP_ANIMATION_NONE 
)

void Map::Msg ( Character from,
std::string  message 
)

bool Map::Walk ( Character from,
int  direction,
bool  admin = false 
)

void Map::Attack ( Character from,
int  direction 
)

void Map::Face ( Character from,
int  direction 
)

void Map::Sit ( Character from,
int  sit_type 
)

void Map::Stand ( Character from  ) 

void Map::Emote ( Character from,
int  emote 
)

bool Map::OpenDoor ( Character from,
int  x,
int  y 
)

Map_Item* Map::AddItem ( int  id,
int  amount,
int  x,
int  y,
Character from = 0 
)

void Map::DelItem ( int  uid,
Character from = 0 
)

bool Map::InBounds ( int  x,
int  y 
)

bool Map::Walkable ( int  x,
int  y 
)

Map_Tile::TileSpec Map::GetSpec ( int  x,
int  y 
)

Map_Warp* Map::GetWarp ( int  x,
int  y 
)


Member Data Documentation

int Map::id

char Map::rid[4]

bool Map::pk

std::string Map::filename

std::list<Character *> Map::characters

std::list<NPC *> Map::npcs

std::list<Map_Item> Map::items

std::map<int, std::map<int, Map_Tile> > Map::tiles


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

Generated on Sun Apr 5 20:28:23 2009 for EOServ by  doxygen 1.5.7.1