Pol  Rev 533
Map Class Reference

#include <umap.h>

+ Inheritance diagram for Map:
+ Collaboration diagram for Map:

List of all members.

Public Types

typedef PinPoints::iterator pin_points_itr
typedef std::vector< PinPointPinPoints

Public Member Functions

virtual Itemclone () const
u16 get_xeast ()
u16 get_xwest ()
u16 get_ynorth ()
u16 get_ysouth ()
virtual u16 gumpXtoWorldX (u16 gumpx)
virtual u16 gumpYtoWorldY (u16 gumpy)
virtual bool msgCoordsInBounds (PKTBI_56 *msg)
virtual u16 worldXtoGumpX (u16 worldx)
virtual u16 worldYtoGumpY (u16 worldy)

Public Attributes

bool editable
u16 gumpheight
u16 gumpwidth
PinPoints pin_points
bool plotting

Protected Member Functions

 Map (const MapDesc &mapdesc)
virtual ~Map ()
virtual void builtin_on_use (Client *client)
virtual BObjectImpget_script_member (const char *membername) const
virtual BObjectImpget_script_member_id (const int id) const
virtual void printPinPoints (std::ostream &os) const
virtual void printProperties (std::ostream &os) const
virtual void readProperties (ConfigElem &elem)
virtual bool script_isa (unsigned isatype) const
virtual BObjectImpscript_method (const char *methodname, Executor &ex)
 id test
virtual BObjectImpscript_method_id (const int id, Executor &ex)
virtual BObjectImpset_script_member (const char *membername, int value)
 id test
virtual BObjectImpset_script_member_id (const int id, int value)
 id test

Private Types

typedef Item base

Private Member Functions

 Map (const Map &map)
Mapoperator= (const Map &map)

Private Attributes

u16 xeast
u16 xwest
u16 ynorth
u16 ysouth

Friends

ItemItem::create (const ItemDesc &itemdesc, u32 serial)

Detailed Description

Definition at line 25 of file umap.h.


Member Typedef Documentation

typedef Item Map::base [private]

Reimplemented from Item.

Definition at line 27 of file umap.h.

typedef PinPoints::iterator Map::pin_points_itr

Definition at line 35 of file umap.h.

typedef std::vector<PinPoint> Map::PinPoints

Definition at line 33 of file umap.h.


Constructor & Destructor Documentation

Map::Map ( const MapDesc mapdesc) [protected]

Definition at line 36 of file umap.cpp.

Map::~Map ( ) [protected, virtual]

Definition at line 50 of file umap.cpp.

Map::Map ( const Map map) [private]

Member Function Documentation

Item * Map::clone ( ) const [virtual]

Reimplemented from Item.

Definition at line 437 of file umap.cpp.

References Item::clone(), editable, gumpheight, gumpwidth, pin_points, plotting, xeast, xwest, ynorth, and ysouth.

+ Here is the call graph for this function:

BObjectImp * Map::get_script_member ( const char *  membername) const [protected, virtual]

Reimplemented from Item.

Definition at line 2882 of file uoscrobj.cpp.

References get_script_member_id(), getKnownObjMember(), and ObjMember::id.

+ Here is the call graph for this function:

BObjectImp * Map::get_script_member_id ( const int  id) const [protected, virtual]

Reimplemented from Item.

Definition at line 2864 of file uoscrobj.cpp.

References Item::get_script_member_id(), gumpheight, gumpwidth, MBR_GUMPHEIGHT, MBR_GUMPWIDTH, MBR_XEAST, MBR_XWEST, MBR_YNORTH, MBR_YSOUTH, xeast, xwest, ynorth, and ysouth.

Referenced by get_script_member().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

u16 Map::get_xeast ( ) [inline]

Definition at line 38 of file umap.h.

References xeast.

Referenced by gumpXtoWorldX(), msgCoordsInBounds(), and worldXtoGumpX().

+ Here is the caller graph for this function:

u16 Map::get_xwest ( ) [inline]

Definition at line 37 of file umap.h.

References xwest.

Referenced by gumpXtoWorldX(), msgCoordsInBounds(), and worldXtoGumpX().

+ Here is the caller graph for this function:

u16 Map::get_ynorth ( ) [inline]

Definition at line 39 of file umap.h.

References ynorth.

Referenced by gumpYtoWorldY(), msgCoordsInBounds(), and worldYtoGumpY().

+ Here is the caller graph for this function:

u16 Map::get_ysouth ( ) [inline]

Definition at line 40 of file umap.h.

References ysouth.

Referenced by gumpYtoWorldY(), msgCoordsInBounds(), and worldYtoGumpY().

+ Here is the caller graph for this function:

u16 Map::gumpXtoWorldX ( u16  gumpx) [virtual]

Definition at line 408 of file umap.cpp.

References get_xeast(), get_xwest(), and gumpwidth.

Referenced by handle_map_pin().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

u16 Map::gumpYtoWorldY ( u16  gumpy) [virtual]

Definition at line 415 of file umap.cpp.

References get_ynorth(), get_ysouth(), and gumpheight.

Referenced by handle_map_pin().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

bool Map::msgCoordsInBounds ( PKTBI_56 msg) [virtual]

Definition at line 396 of file umap.cpp.

References cfBEu16, get_xeast(), get_xwest(), get_ynorth(), get_ysouth(), PKTBI_56::pinx, and PKTBI_56::piny.

Referenced by handle_map_pin().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Map& Map::operator= ( const Map map) [private]
void Map::printPinPoints ( std::ostream &  os) const [protected, virtual]

Definition at line 73 of file umap.cpp.

References pf_endl, and pin_points.

Referenced by printProperties().

+ Here is the caller graph for this function:

void Map::printProperties ( std::ostream &  os) const [protected, virtual]

Reimplemented from Item.

Definition at line 54 of file umap.cpp.

References editable, gumpheight, gumpwidth, pf_endl, printPinPoints(), Item::printProperties(), xeast, xwest, ynorth, and ysouth.

+ Here is the call graph for this function:

void Map::readProperties ( ConfigElem elem) [protected, virtual]
bool Map::script_isa ( unsigned  isatype) const [protected, virtual]

Reimplemented from Item.

Definition at line 3700 of file uoscrobj.cpp.

References POLCLASS_MAP, and Item::script_isa().

Referenced by script_method_id().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

BObjectImp * Map::script_method ( const char *  methodname,
Executor ex 
) [protected, virtual]

id test

Reimplemented from Item.

Definition at line 285 of file umap.cpp.

References getKnownObjMethod(), ObjMethod::id, Item::script_method(), and script_method_id().

+ Here is the call graph for this function:

BObjectImp * Map::script_method_id ( const int  id,
Executor ex 
) [protected, virtual]

Reimplemented from Item.

Definition at line 174 of file umap.cpp.

References ObjArray::addElement(), BStruct::addMember(), Executor::getParam(), MTH_APPENDPIN, MTH_ERASEPIN, MTH_GETPINS, MTH_INSERTPIN, MTH_ISA, pin_points, UObject::realm, script_isa(), Item::script_method_id(), UObject::set_dirty(), Realm::valid(), PinPoint::x, UObject::x, PinPoint::y, and UObject::y.

Referenced by script_method().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

BObjectImp * Map::set_script_member ( const char *  membername,
int  value 
) [protected, virtual]

id test

Reimplemented from Item.

Definition at line 2907 of file uoscrobj.cpp.

References getKnownObjMember(), ObjMember::id, and set_script_member_id().

+ Here is the call graph for this function:

BObjectImp * Map::set_script_member_id ( const int  id,
int  value 
) [protected, virtual]

id test

Reimplemented from Item.

Definition at line 2891 of file uoscrobj.cpp.

References gumpheight, gumpwidth, MBR_GUMPHEIGHT, MBR_GUMPWIDTH, MBR_XEAST, MBR_XWEST, MBR_YNORTH, MBR_YSOUTH, Item::set_script_member_id(), xeast, xwest, ynorth, and ysouth.

Referenced by set_script_member().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

u16 Map::worldXtoGumpX ( u16  worldx) [virtual]

Definition at line 422 of file umap.cpp.

References get_xeast(), get_xwest(), and gumpwidth.

Referenced by builtin_on_use().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

u16 Map::worldYtoGumpY ( u16  worldy) [virtual]

Definition at line 429 of file umap.cpp.

References get_ynorth(), get_ysouth(), and gumpheight.

Referenced by builtin_on_use().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:


Friends And Related Function Documentation

Item* Item::create ( const ItemDesc itemdesc,
u32  serial 
) [friend]

Member Data Documentation

Definition at line 31 of file umap.h.

Referenced by clone(), handle_map_pin(), printProperties(), and readProperties().

Definition at line 32 of file umap.h.

Referenced by clone(), and handle_map_pin().


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