Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

cPacketStatWindow Class Reference

Stat window info. More...

#include <packets.h>

Inheritance diagram for cPacketStatWindow:

cServerPacket cPacket List of all members.

Public Methods

 cPacketStatWindow ()
void send (NXWCLIENT ps)
 Send packet to client.

void send (cChar *pc)
void sendBasic (NXWCLIENT ps, UI08 flag=0x00)
void sendStat (NXWCLIENT ps)
void sendExtended (NXWCLIENT ps)

Public Attributes

Serial player
 serial of player

string name
 name ( 30 characters )

UI16 currhp
 current Hit points

UI16 maxhp
 max Hit points

UI08 canchangename
 name change flag ( 0xFF = allowed, 0 = not allowed )

UI08 sex
 sex ( 0=male, 1=female)

UI16 st
 strenght

UI16 dx
 dexterity

UI16 in
 intelligence

UI16 currstamina
 current Stamina

UI16 maxstamina
 max Stamina

UI16 currmana
 current Mana

UI16 maxmana
 max Mana

UI32 gold
 gold

UI16 ac
 armor class

UI16 weight
 weight

UI16 statcap
 stat cap

UI08 currpets
 current pets

UI08 maxpets
 max pets


Private Attributes

UI16 size
 lenght packet

UI08 flag
 flag ( 0x00 = no more data following ( end of packet here ), 0x01 = more data follow, 0x03 like 0x01 with extended info)


Detailed Description

Stat window info.

Author:
Endymion
Since:
0.83
Note:
0x11
For characters other than the player, currentHitpoints and maxHitpoints are not the actual values. MaxHitpointsis a fixed value, and currentHitpoints works like a percentage


Constructor & Destructor Documentation

cPacketStatWindow::cPacketStatWindow  
 


Member Function Documentation

void cPacketStatWindow::send cChar   pc
 

void cPacketStatWindow::send NXWCLIENT    ps [virtual]
 

Send packet to client.

Author:
Endymion, rewritten by Luxor
Since:
0.83a
Parameters:
ps  the client who send to

Reimplemented from cServerPacket.

void cPacketStatWindow::sendBasic NXWCLIENT    ps,
UI08    flag = 0x00
 

void cPacketStatWindow::sendExtended NXWCLIENT    ps
 

void cPacketStatWindow::sendStat NXWCLIENT    ps
 


Member Data Documentation

UI16 cPacketStatWindow::ac
 

armor class

UI08 cPacketStatWindow::canchangename
 

name change flag ( 0xFF = allowed, 0 = not allowed )

UI16 cPacketStatWindow::currhp
 

current Hit points

UI16 cPacketStatWindow::currmana
 

current Mana

UI08 cPacketStatWindow::currpets
 

current pets

UI16 cPacketStatWindow::currstamina
 

current Stamina

UI16 cPacketStatWindow::dx
 

dexterity

UI08 cPacketStatWindow::flag [private]
 

flag ( 0x00 = no more data following ( end of packet here ), 0x01 = more data follow, 0x03 like 0x01 with extended info)

UI32 cPacketStatWindow::gold
 

gold

UI16 cPacketStatWindow::in
 

intelligence

UI16 cPacketStatWindow::maxhp
 

max Hit points

UI16 cPacketStatWindow::maxmana
 

max Mana

UI08 cPacketStatWindow::maxpets
 

max pets

UI16 cPacketStatWindow::maxstamina
 

max Stamina

string cPacketStatWindow::name
 

name ( 30 characters )

Serial cPacketStatWindow::player
 

serial of player

UI08 cPacketStatWindow::sex
 

sex ( 0=male, 1=female)

UI16 cPacketStatWindow::size [private]
 

lenght packet

UI16 cPacketStatWindow::st
 

strenght

UI16 cPacketStatWindow::statcap
 

stat cap

UI16 cPacketStatWindow::weight
 

weight


The documentation for this class was generated from the following files: SourceForge.net Logo