Pol  Revision:cb584c9
ufunc.h File Reference
#include <stddef.h>
#include "../clib/rawtypes.h"
#include "core.h"
#include "network/packets.h"
#include "uconst.h"

Go to the source code of this file.

Namespaces

 Pol
 
 Pol::Core
 
 Pol::Items
 
 Pol::Mobile
 
 Pol::Multi
 
 Pol::Network
 
 Pol::Realms
 

Functions

void Pol::Core::broadcast (const char *text, unsigned short font, unsigned short color, unsigned short requiredCmdLevel)
 
void Pol::Core::broadcast (const u16 *wtext, const char lang[4], unsigned short font, unsigned short color, unsigned short requiredCmdLevel)
 
void Pol::Core::build_owncreate (const Character *chr, PktOut_78 *owncreate)
 
Character * Pol::Core::chr_from_wornitems (UContainer *wornitems)
 
bool Pol::Core::clientHasCharacter (Client *c)
 
u16 Pol::Core::convert_objtype_to_spellnum (u32 objtype, int school)
 
Items::Item * Pol::Core::copy_item (const Items::Item *src_item)
 
void Pol::Core::destroy_item (Item *item)
 
Mobile::Character * Pol::Core::find_character (u32 serial)
 
UContainer * Pol::Core::find_legal_container (const Character *chr, u32 serial)
 
Item * Pol::Core::find_legal_item (const Character *chr, u32 serial, bool *additlegal, bool *isRemoteContainer)
 
UObject * Pol::Core::find_toplevel_object (u32 serial)
 
u32 Pol::Core::GetCurrentCharSerialNumber (void)
 
u32 Pol::Core::GetCurrentItemSerialNumber (void)
 
u32 Pol::Core::GetNewItemSerialNumber (void)
 
u32 Pol::Core::GetNextSerialNumber (void)
 
bool Pol::Core::in_say_range (const Character *c1, const Character *c2)
 
bool Pol::Core::in_whisper_range (const Character *c1, const Character *c2)
 
bool Pol::Core::in_yell_range (const Character *c1, const Character *c2)
 
bool Pol::Core::inrange (const Mobile::Character *c1, const Mobile::Character *c2)
 
bool Pol::Core::inrange (const Mobile::Character *c1, const UObject *obj)
 
bool Pol::Core::inrange (unsigned short x1, unsigned short y1, unsigned short x2, unsigned short y2)
 
bool Pol::Core::inrangex (const Character *c1, const Character *c2, int maxdist)
 
bool Pol::Core::inrangex (const UObject *c1, unsigned short x, unsigned short y, int maxdist)
 
bool Pol::Core::is_a_parent (const Item *item, u32 serial)
 
void Pol::Core::login_complete (Client *c)
 
void Pol::Core::move_item (Item *item, UFACING facing)
 
void Pol::Core::move_item (Item *item, unsigned short newx, unsigned short newy, signed char newz, Realms::Realm *oldrealm)
 
bool Pol::Core::multi_inrange (const Mobile::Character *c1, const Multi::UMulti *obj)
 
bool Pol::Core::multi_inrange (unsigned short x1, unsigned short y1, unsigned short x2, unsigned short y2)
 
void Pol::Core::play_lightning_bolt_effect (const UObject *center)
 
void Pol::Core::play_moving_effect (const UObject *src, const UObject *dst, u16 effect, u8 speed, u8 loop, u8 explode)
 
void Pol::Core::play_moving_effect2 (u16 xs, u16 ys, s8 zs, u16 xd, u16 yd, s8 zd, u16 effect, u8 speed, u8 loop, u8 explode, Realms::Realm *realm)
 
void Pol::Core::play_moving_effect2_ex (u16 xs, u16 ys, s8 zs, u16 xd, u16 yd, s8 zd, Realms::Realm *realm, u16 effect, u8 speed, u8 duration, u32 hue, u32 render, u8 direction, u8 explode, u16 effect3d, u16 effect3dexplode, u16 effect3dsound)
 
void Pol::Core::play_moving_effect_ex (const UObject *src, const UObject *dst, u16 effect, u8 speed, u8 duration, u32 hue, u32 render, u8 direction, u8 explode, u16 effect3d, u16 effect3dexplode, u16 effect3dsound)
 
void Pol::Core::play_object_centered_effect (const UObject *center, u16 effect, u8 speed, u8 loop)
 
void Pol::Core::play_object_centered_effect_ex (const UObject *center, u16 effect, u8 speed, u8 duration, u32 hue, u32 render, u8 layer, u16 effect3d)
 
void Pol::Core::play_sound_effect (const UObject *center, u16 effect)
 
void Pol::Core::play_sound_effect_private (const UObject *center, u16 effect, Character *forchr)
 
void Pol::Core::play_sound_effect_xyz (u16 cx, u16 cy, s8 cz, u16 effect, Realms::Realm *realm)
 
void Pol::Core::play_stationary_effect (u16 x, u16 y, s8 z, u16 effect, u8 speed, u8 loop, u8 explode, Realms::Realm *realm)
 
void Pol::Core::play_stationary_effect_ex (u16 x, u16 y, s8 z, Realms::Realm *realm, u16 effect, u8 speed, u8 duration, u32 hue, u32 render, u16 effect3d)
 
unsigned short Pol::Core::pol_distance (unsigned short x1, unsigned short y1, unsigned short x2, unsigned short y2)
 
unsigned short Pol::Core::pol_distance (const Mobile::Character *c1, const UObject *obj)
 
bool Pol::Core::private_say_above (Character *chr, const UObject *obj, const char *text, unsigned short font, unsigned short color, unsigned int journal_print)
 
bool Pol::Core::private_say_above (Character *chr, const UObject *obj, const u16 *wtext, const char lang[4], unsigned short font, unsigned short color, unsigned int journal_print)
 
void Pol::Core::register_with_supporting_multi (Item *item)
 
void Pol::Core::remove_objects_inrange (Network::Client *client)
 
bool Pol::Core::say_above (const UObject *obj, const char *text, unsigned short font, unsigned short color, unsigned int journal_print)
 
bool Pol::Core::say_above (const UObject *obj, const u16 *wtext, const char lang[4], unsigned short font, unsigned short color, unsigned int journal_print)
 
void Pol::Core::send_buff_message (Character *chr, u16 icon, bool show, u16 duration, u32 cl_name, u32 cl_descr, std::vector< u32 > arguments)
 
void Pol::Core::send_char_data (Client *client, Character *chr)
 
void Pol::Core::send_char_if_newly_inrange (Mobile::Character *chr, Network::Client *client)
 
void Pol::Core::send_container_contents (Network::Client *client, const UContainer &cont)
 
void Pol::Core::send_corpse (Client *client, const Item *item)
 
void Pol::Core::send_corpse_equip_inrange (const Item *item)
 
void Pol::Core::send_create_mobile_if_nearby_cansee (Client *client, const Character *chr)
 
void Pol::Core::send_create_mobile_to_nearby_cansee (const Character *chr)
 
void Pol::Core::send_damage (Character *attacker, Character *defender, u16 damage)
 
void Pol::Core::send_death_message (Character *chr_died, Item *corpse)
 
void Pol::Core::send_feature_enable (Client *client)
 
void Pol::Core::send_fight_occuring (Client *client, Character *opponent)
 
void Pol::Core::send_full_corpse (Client *client, const Item *item)
 
void Pol::Core::send_goxyz (Client *client, const Character *chr)
 
void Pol::Core::send_invulhealthbar (Client *client, const Character *chr)
 
void Pol::Core::send_item (Client *client, const Item *item)
 
void Pol::Core::send_item_if_newly_inrange (Items::Item *item, Network::Client *client)
 
void Pol::Core::send_item_move_failure (Network::Client *client, u8 reason)
 
void Pol::Core::send_item_to_inrange (const Item *item)
 
void Pol::Core::send_light (Client *client, int lightlevel)
 
void Pol::Core::send_login_error (Network::Client *client, unsigned char reason)
 
void Pol::Core::send_mana_level (Client *client)
 
void Pol::Core::send_map_difs (Client *client)
 Sends number of maps used and number of map/static patches for each map. More...
 
bool Pol::Core::send_menu (Network::Client *client, Menu *menu)
 
void Pol::Core::send_midi (Client *client, u16 midi)
 
void Pol::Core::send_mode (Network::Client *client)
 
void Pol::Core::send_move (Network::Client *client, const Mobile::Character *chr, Network::PktOut_77 *movebuffer)
 
void Pol::Core::send_move (Client *client, const Character *chr)
 
void Pol::Core::send_move_mobile_to_nearby_cansee (const Character *chr)
 
void Pol::Core::send_multis_newly_inrange (Multi::UMulti *multi, Network::Client *client)
 
void Pol::Core::send_new_subserver (Client *client)
 
void Pol::Core::send_objdesc (Client *client, Item *item)
 
void Pol::Core::send_objects_newly_inrange (Network::Client *client)
 
void Pol::Core::send_objects_newly_inrange_on_boat (Network::Client *client, u32 serial)
 
void Pol::Core::send_open_gump (Network::Client *client, const UContainer &cont)
 
void Pol::Core::send_owncreate (Client *client, const Character *chr)
 
void Pol::Core::send_owncreate (Client *client, const Character *chr, PktOut_78 *owncreate)
 
void Pol::Core::send_poisonhealthbar (Client *client, const Character *chr)
 
void Pol::Core::send_put_in_container (Client *client, const Item *item)
 
void Pol::Core::send_put_in_container_to_inrange (const Item *item)
 
void Pol::Core::send_realm_change (Client *client, Realms::Realm *realm)
 
void Pol::Core::send_remove (Network::Client &client, UObject &to_remove)
 
void Pol::Core::send_remove_character (Client *client, const Character *chr)
 
void Pol::Core::send_remove_character (Network::Client *client, const Mobile::Character *chr, Network::RemoveObjectPkt &pkt)
 
void Pol::Core::send_remove_character_to_nearby (const Character *chr)
 
void Pol::Core::send_remove_character_to_nearby_cansee (const Character *chr)
 
void Pol::Core::send_remove_character_to_nearby_cantsee (const Character *chr)
 
void Pol::Core::send_remove_object (Client *client, const UObject *object)
 
void Pol::Core::send_remove_object (Client *client, const UObject *item, RemoveObjectPkt &pkt)
 
void Pol::Core::send_remove_object_if_inrange (Client *client, const Item *item)
 
void Pol::Core::send_remove_object_to_inrange (const UObject *centerObject)
 
void Pol::Core::send_season_info (Client *client)
 
void Pol::Core::send_stamina_level (Client *client)
 
void Pol::Core::send_sysmessage (Network::Client *client, const char *text, unsigned short font, unsigned short color)
 
void Pol::Core::send_sysmessage (Network::Client *client, const u16 *wtext, const char lang[4], unsigned short font, unsigned short color)
 
void Pol::Core::send_weather (Client *client, u8 type, u8 severity, u8 aux)
 
void Pol::Core::send_wornitem (Client *client, const Character *chr, const Item *item)
 
void Pol::Core::send_wornitem_to_inrange (const Character *chr, const Item *item)
 
void Pol::Core::sendCharProfile (Character *chr, Character *of_who, const char *title, const u16 *utext, const u16 *etext)
 
void Pol::Core::SetCurrentCharSerialNumber (u32 serial)
 
void Pol::Core::SetCurrentItemSerialNumber (u32 serial)
 
void Pol::Core::setrealm (Item *item, void *arg)
 
void Pol::Core::setrealmif (Item *item, void *arg)
 
void Pol::Core::transmit_to_inrange (const UObject *center, const void *msg, unsigned msglen)
 
void Pol::Core::transmit_to_others_inrange (Character *center, const void *msg, unsigned msglen)
 
void Pol::Core::update_all_weatherregions ()
 
void Pol::Core::update_item_to_inrange (const Item *item)
 
void Pol::Core::update_wornitem_to_inrange (const Character *chr, const Item *item)
 
void Pol::Core::UpdateCharacterOnDestroyItem (Item *item)
 
Character * Pol::Core::UpdateCharacterWeight (Item *item)
 
u32 Pol::Core::UseCharSerialNumber (u32 serial)
 
u32 Pol::Core::UseItemSerialNumber (u32 serial)
 

Detailed Description

History
  • 2006/05/07 Shinigami: SendAOSTooltip - will now send merchant_description() if needed
  • 2009/07/26 MuadDib: updates for new Packet Refactoring
  • 2009/07/31 Turley: added send_fight_occuring() for packet 0x2F
  • 2009/08/01 MuadDib: Removed send_tech_stuff(), unused and obsolete.
  • 2009/08/09 MuadDib: Refactor of Packet 0x25 for naming convention
  • 2009/09/22 Turley: Added DamagePacket support

Definition in file ufunc.h.