Main Page | Class List | File List | Class Members | Related Pages

WDS::CMap Class Reference

#include <map.h>

Collaboration diagram for WDS::CMap:

Collaboration graph
[legend]
List of all members.

Public Member Functions

bool Update (const string strUpdate)
CTown * GetTownAt (int x, int y)

Detailed Description

The class CMap contains the map, which includes

Definition at line 49 of file map.h.


Member Function Documentation

CTown * WDS::CMap::GetTownAt (  int  x,
int  y
) 
 

GetTownAt

Parameters:
x X position
y Y position
Returns:
town or NULL if there is none

Definition at line 807 of file map.cpp.

References WDS::CTownArray::get().

Referenced by WDS::CDlgGoTo::FillListBoxes().

Here is the call graph for this function:

bool WDS::CMap::Update (  const string  strUpdate  ) 
 

Updated die Karte

Format einer Zeile: X Y [BUILDING] [BORDERS] [STREETS] [UNITS] [FOW] [SIGHT] [TOWN_NAME] [PLAYER_NAME] [GUILD] [...] bedeutet optional. Default-Werte siehe Spezifikation.

X, Y, FOW, BUILDING, BORDERS, STREETS, UNITS, SIGHT : Int TOWN_NAME, PLAYER_NAME, GUILD : String

Todo:
towns (sight, townname, player and guild)

Definition at line 126 of file map.cpp.

References WDS::CTownArray::erase(), WDS::CTownArray::get(), CParser::NextToken(), WDS::CTownArray::set(), WDS::CTown::SetName(), WDS::CTown::SetPos(), WDS::CTown::SetSight(), CParser::SkipLine(), CParser::StartParseString(), and CParser::Token().

Here is the call graph for this function:


The documentation for this class was generated from the following files:
Generated on Sun Jan 16 18:20:27 2005 for WDSMap by  doxygen 1.3.9.1