|
Pol
Rev 533
|
#include <umap.h>
Inheritance diagram for Map:
Collaboration diagram for Map:Public Types | |
| typedef PinPoints::iterator | pin_points_itr |
| typedef std::vector< PinPoint > | PinPoints |
Public Member Functions | |
| virtual Item * | clone () 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 BObjectImp * | get_script_member (const char *membername) const |
| virtual BObjectImp * | get_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 BObjectImp * | script_method (const char *methodname, Executor &ex) |
| id test | |
| virtual BObjectImp * | script_method_id (const int id, Executor &ex) |
| virtual BObjectImp * | set_script_member (const char *membername, int value) |
| id test | |
| virtual BObjectImp * | set_script_member_id (const int id, int value) |
| id test | |
Private Types | |
| typedef Item | base |
Private Member Functions | |
| Map (const Map &map) | |
| Map & | operator= (const Map &map) |
Private Attributes | |
| u16 | xeast |
| u16 | xwest |
| u16 | ynorth |
| u16 | ysouth |
Friends | |
| Item * | Item::create (const ItemDesc &itemdesc, u32 serial) |
| typedef PinPoints::iterator Map::pin_points_itr |
| typedef std::vector<PinPoint> Map::PinPoints |
| void Map::builtin_on_use | ( | Client * | client | ) | [protected, virtual] |
Reimplemented from Item.
Definition at line 133 of file umap.cpp.
References gumpheight, gumpwidth, PacketWriterDefs::PacketInterface::offset, pin_points, PktHelper::PacketOut< T >::Send(), UObject::serial_ext, PKTBI_56::TYPE_ADD, PKTBI_56::TYPE_REMOVE_ALL, worldXtoGumpX(), worldYtoGumpY(), PacketWriterDefs::PacketWriter< _id, _size, _sub >::Write(), PacketWriterDefs::PacketWriter< _id, _size, _sub >::WriteFlipped(), xeast, xwest, ynorth, and ysouth.
Here is the call graph for this function:| 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:| 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] |
Reimplemented from Item.
Definition at line 101 of file umap.cpp.
References editable, gumpheight, gumpwidth, pin_points, Item::readProperties(), ConfigElem::remove_bool(), ConfigElem::remove_string(), ConfigElem::remove_ushort(), PinPoint::x, UObject::x, xeast, xwest, PinPoint::y, UObject::y, ynorth, and ysouth.
Here is the call graph for this function:| 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:| Item* Item::create | ( | const ItemDesc & | itemdesc, |
| u32 | serial | ||
| ) | [friend] |
| bool Map::editable |
Definition at line 31 of file umap.h.
Referenced by clone(), handle_map_pin(), printProperties(), and readProperties().
Definition at line 30 of file umap.h.
Referenced by builtin_on_use(), clone(), get_script_member_id(), gumpYtoWorldY(), printProperties(), readProperties(), set_script_member_id(), and worldYtoGumpY().
Definition at line 29 of file umap.h.
Referenced by builtin_on_use(), clone(), get_script_member_id(), gumpXtoWorldX(), printProperties(), readProperties(), set_script_member_id(), and worldXtoGumpX().
Definition at line 34 of file umap.h.
Referenced by builtin_on_use(), clone(), handle_map_pin(), printPinPoints(), readProperties(), and script_method_id().
| bool Map::plotting |
Definition at line 32 of file umap.h.
Referenced by clone(), and handle_map_pin().
u16 Map::xeast [private] |
Definition at line 72 of file umap.h.
Referenced by builtin_on_use(), clone(), get_script_member_id(), get_xeast(), printProperties(), readProperties(), and set_script_member_id().
u16 Map::xwest [private] |
Definition at line 71 of file umap.h.
Referenced by builtin_on_use(), clone(), get_script_member_id(), get_xwest(), printProperties(), readProperties(), and set_script_member_id().
u16 Map::ynorth [private] |
Definition at line 73 of file umap.h.
Referenced by builtin_on_use(), clone(), get_script_member_id(), get_ynorth(), printProperties(), readProperties(), and set_script_member_id().
u16 Map::ysouth [private] |
Definition at line 74 of file umap.h.
Referenced by builtin_on_use(), clone(), get_script_member_id(), get_ysouth(), printProperties(), readProperties(), and set_script_member_id().