Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

AmmoTransferWindow Class Reference

Inheritance diagram for AmmoTransferWindow:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 AmmoTransferWindow (ContainerBase *source, ContainerBase *destination, PG_Widget *parent)
bool somethingToTransfer ()
bool eventKeyDown (const SDL_KeyboardEvent *key)
 Overridable Eventhandler for a SDL_KeyboardEvent message.

Constructor & Destructor Documentation

AmmoTransferWindow::AmmoTransferWindow ContainerBase source,
ContainerBase destination,
PG_Widget parent
 

Definition at line 124 of file ammotransferdialog.cpp.

References TransferHandler::allowAmmoProduction(), TransferHandler::ammoProductionPossible(), fieldsizex, fieldsizey, Surface::getBaseSurface(), ContainerBase::getImage(), PG_Application::GetScreen(), TransferHandler::getTransfers(), CGameOptions::Instance(), min(), PG_Rect::PG_Rect(), PG_ThemeWidget::PG_ThemeWidget(), PG_RadioButton::SetPressed(), PG_ThemeWidget::SetTransparency(), PG_Button::sigClick, PG_RadioButton::sigClick, PG_Widget::SizeWidget(), PG_Draw::STRETCH, and PG_Rect::Width().


Member Function Documentation

bool AmmoTransferWindow::eventKeyDown const SDL_KeyboardEvent *  key  )  [inline, virtual]
 

Overridable Eventhandler for a SDL_KeyboardEvent message.

This handler is called when a key changed it's state from unpressed to pressed. The default implementation returns 'false' which indicates that this message is not processed by this object.

Parameters:
key SDL_KeyboardEvent message
Returns:
Notifies the message pump if this message is processed by this object or it should be routed to the next message receiver.

Reimplemented from ASC_PG_Dialog.

Definition at line 112 of file ammotransferdialog.cpp.

References PG_Widget::QuitModal().

bool AmmoTransferWindow::somethingToTransfer  )  [inline]
 

Definition at line 110 of file ammotransferdialog.cpp.

References TransferHandler::getTransfers().

Referenced by ammoTransferWindow().


The documentation for this class was generated from the following file:
Generated on Tue Jun 24 02:16:06 2008 for Advanced Strategic Command by  doxygen 1.4.2