Pol
Revision:cb584c9
|
#include <target.h>
Public Member Functions | |
virtual | ~TargetCursor () |
void | cancel (Mobile::Character *chr) |
void | handle_target_cursor (Mobile::Character *targetter, PKTBI_6C *msg) |
virtual void | on_target_cursor (Mobile::Character *targetter, PKTBI_6C *msg)=0 |
bool | send_object_cursor (Network::Client *client, PKTBI_6C::CURSOR_TYPE crstype=PKTBI_6C::CURSOR_TYPE_NEUTRAL) |
Public Attributes | |
u32 | cursorid_ |
Protected Member Functions | |
TargetCursor (bool inform_on_cancel) | |
Protected Attributes | |
bool | inform_on_cancel_ |
Friends | |
struct | Cursors |
|
explicitprotected |
Definition at line 115 of file target.cpp.
References Pol::Core::Cursors::_cursorid_count, Pol::Core::Cursors::_target_cursors, cursorid_, Pol::Core::gamestate, and Pol::Core::GameState::target_cursors.
|
inlinevirtual |
Definition at line 40 of file target.h.
References Pol::Core::PKTBI_6C::CURSOR_TYPE_NEUTRAL, and Pol::Core::handle_target_cursor().
void Pol::Core::TargetCursor::cancel | ( | Mobile::Character * | chr | ) |
Definition at line 152 of file target.cpp.
References inform_on_cancel_, on_target_cursor(), and Pol::Mobile::Character::tcursor2.
Referenced by handle_target_cursor().
void Pol::Core::TargetCursor::handle_target_cursor | ( | Mobile::Character * | targetter, |
PKTBI_6C * | msg | ||
) |
Definition at line 159 of file target.cpp.
References Pol::Mobile::Character::can_freemove(), cancel(), cfBEu32, Pol::Mobile::Character::client, Pol::Core::PKTBI_6C::cursor_type, Pol::Mobile::Character::dead(), Pol::Core::find_character(), Pol::Mobile::Character::frozen(), Pol::Mobile::Character::is_visible_to_me(), on_target_cursor(), Pol::Mobile::Character::paralyzed(), Pol::Core::POLCLASS_MOBILE, Pol::Core::POLCLASS_NPC, Pol::Core::private_say_above(), Pol::Core::JusticeRegion::RunNoCombatCheck(), Pol::Core::UObject::script_isa(), Pol::Core::PKTBI_6C::selected_serial, Pol::Core::send_sysmessage(), Pol::Core::system_find_object(), and Pol::Core::PKTBI_6C::x.
Referenced by Pol::Core::handle_target_cursor().
|
pure virtual |
Implemented in Pol::Core::NoLosUObjectCursor, Pol::Core::NoLosCharacterCursor, Pol::Core::MultiPlacementCursor, Pol::Core::LosCheckedCoordCursor, Pol::Core::NoLosCheckedTargetCursor, Pol::Core::LosCheckedTargetCursor, and Pol::Core::FullMsgTargetCursor.
Referenced by cancel(), and handle_target_cursor().
bool Pol::Core::TargetCursor::send_object_cursor | ( | Network::Client * | client, |
PKTBI_6C::CURSOR_TYPE | crstype = PKTBI_6C::CURSOR_TYPE_NEUTRAL |
||
) |
Definition at line 133 of file target.cpp.
References Pol::Network::Client::chr, cursorid_, Pol::Network::PktHelper::PacketOut< T >::Send(), Pol::Mobile::Character::target_cursor_busy(), Pol::Mobile::Character::tcursor2, and Pol::Core::PKTBI_6C::UNK1_00.
Referenced by Pol::Core::handle_add(), Pol::Core::handle_remove(), Pol::Module::UOExecutorModule::mf_Target(), Pol::Core::textcmd_ident(), Pol::Core::textcmd_repdata(), Pol::Core::textcmd_startlog(), and Pol::Core::textcmd_stoplog().
u32 Pol::Core::TargetCursor::cursorid_ |
Definition at line 50 of file target.h.
Referenced by Pol::Core::LosCheckedCoordCursor::send_coord_cursor(), send_object_cursor(), Pol::Core::MultiPlacementCursor::send_placemulti(), and TargetCursor().
|
protected |
Definition at line 53 of file target.h.
Referenced by cancel(), Pol::Core::LosCheckedTargetCursor::on_target_cursor(), Pol::Core::NoLosCheckedTargetCursor::on_target_cursor(), and Pol::Core::NoLosUObjectCursor::on_target_cursor().