Planeshift
Public Member Functions | Protected Member Functions | Protected Attributes

pawsLootWindow Class Reference

Window contains a list of the available loot items. More...

#include <pawslootwindow.h>

List of all members.

Public Member Functions

EID GetLootingActor ()
const char * HandleCommand (const char *cmd)
 Handles commands.
void HandleMessage (MsgEntry *message)
 Handles petition server messages.
bool OnButtonPressed (int mouseButton, int keyModifier, pawsWidget *reporter)
 Handle button clicks.
 pawsLootWindow ()
 Constructor.
bool PostSetup ()
 Setup the widget with command/message handling capabilities.
virtual ~pawsLootWindow ()
 Virtual destructor.

Protected Member Functions

void AddLootItem ()
 Function to add the loot to the listbox given a csArray;.
void SetText (int rowNum, int colNum, const char *fmt,...)
 Quicker way to set text for each column in the listbox:

Protected Attributes

bool grouped
EID lootEntity
pawsListBoxlootList
 List widget of loot for easy access.
pawsButtonRoll_btn
 group roll buttons
pawsButtonRollAll_btn

Detailed Description

Window contains a list of the available loot items.

with options to take them, roll for them or cancel the window.

NOTE: the current expected columns for the listbox are as follows:

1) icon 2) item name

Definition at line 46 of file pawslootwindow.h.


Constructor & Destructor Documentation

pawsLootWindow::pawsLootWindow ( )

Constructor.

virtual pawsLootWindow::~pawsLootWindow ( ) [virtual]

Virtual destructor.


Member Function Documentation

void pawsLootWindow::AddLootItem ( ) [protected]

Function to add the loot to the listbox given a csArray;.

EID pawsLootWindow::GetLootingActor ( ) [inline]

Definition at line 67 of file pawslootwindow.h.

const char* pawsLootWindow::HandleCommand ( const char *  cmd) [virtual]

Handles commands.

Implements psCmdBase.

void pawsLootWindow::HandleMessage ( MsgEntry message) [virtual]

Handles petition server messages.

Implements psCmdBase.

bool pawsLootWindow::OnButtonPressed ( int  mouseButton,
int  keyModifier,
pawsWidget reporter 
) [virtual]

Handle button clicks.

Reimplemented from pawsWidget.

bool pawsLootWindow::PostSetup ( ) [virtual]

Setup the widget with command/message handling capabilities.

Reimplemented from pawsWidget.

void pawsLootWindow::SetText ( int  rowNum,
int  colNum,
const char *  fmt,
  ... 
) [protected]

Quicker way to set text for each column in the listbox:


Member Data Documentation

bool pawsLootWindow::grouped [protected]

Definition at line 84 of file pawslootwindow.h.

EID pawsLootWindow::lootEntity [protected]

Definition at line 87 of file pawslootwindow.h.

List widget of loot for easy access.

Definition at line 78 of file pawslootwindow.h.

group roll buttons

Definition at line 81 of file pawslootwindow.h.

Definition at line 82 of file pawslootwindow.h.


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