GUIApp Class Reference

#include <GUIApp.h>

Inheritance diagram for GUIApp:

CoreApp List of all members.

Public Types

 MOUSE_NORMAL = 0
 MOUSE_NONE = 1
 MOUSE_TARGET = 2
 MOUSE_PENTAGRAM = 3
 MOUSE_HAND = 4
 MOUSE_QUILL = 5
 MOUSE_MAGGLASS = 6
 MOUSE_CROSS = 7
enum  MouseCursor {
  MOUSE_NORMAL = 0, MOUSE_NONE = 1, MOUSE_TARGET = 2, MOUSE_PENTAGRAM = 3,
  MOUSE_HAND = 4, MOUSE_QUILL = 5, MOUSE_MAGGLASS = 6, MOUSE_CROSS = 7
}

Public Member Functions

 ENABLE_RUNTIME_CLASSTYPE ()
 GUIApp (int argc, const char *const *argv)
virtual ~GUIApp ()
void startup ()
void shutdown ()
void startupGame ()
void startupPentagramMenu ()
void shutdownGame (bool reloading=true)
void changeGame (Pentagram::istring newgame)
void changeVideoMode (int width, int height, int fullscreen=-1)
RenderSurfacegetScreen ()
virtual void run ()
virtual void handleEvent (const SDL_Event &event)
virtual void paint ()
virtual bool isPainting ()
 INTRINSIC (I_getCurrentTimerTick)
 INTRINSIC (I_setAvatarInStasis)
 INTRINSIC (I_getAvatarInStasis)
 INTRINSIC (I_getTimeInGameHours)
 INTRINSIC (I_getTimeInMinutes)
 INTRINSIC (I_getTimeInSeconds)
 INTRINSIC (I_setTimeInGameHours)
 INTRINSIC (I_makeAvatarACheater)
 INTRINSIC (I_closeItemGumps)
void setAvatarInStasis (bool stat)
bool isAvatarInStasis () const
void toggleAvatarInStasis ()
bool isPaintEditorItems () const
void togglePaintEditorItems ()
bool isShowTouchingItems () const
void toggleShowTouchingItems ()
uint32 getGameTimeInSeconds ()
GameMapGumpgetGameMapGump ()
ConsoleGumpgetConsoleGump ()
GumpgetDesktopGump ()
GumpgetGump (uint16 gumpid)
void addGump (Gump *gump)
AvatarMoverProcessgetAvatarMoverProcess ()
bool saveGame (std::string filename, std::string desc, bool ignore_modals=false)
bool loadGame (std::string filename)
bool newGame ()
int getMouseLength (int mx, int my)
int getMouseDirection (int mx, int my)
void getMouseCoords (int &mx, int &my)
void setMouseCoords (int mx, int my)
bool isMouseDown (MouseButton button)
void setMouseCursor (MouseCursor cursor)
void flashCrossCursor ()
void pushMouseCursor ()
void popMouseCursor ()
void enterTextMode (Gump *)
void leaveTextMode (Gump *)
void setDraggingOffset (int x, int y)
void getDraggingOffset (int &x, int &y)
unsigned int getInversion () const
void setInversion (unsigned int i)
bool isInverted ()
bool hasCheated () const
void makeCheater ()

Static Public Member Functions

static GUIAppget_instance ()

Protected Member Functions

virtual void DeclareArgs ()

Private Types

 DRAG_NOT = 0
 DRAG_OK = 1
 DRAG_INVALID = 2
 DRAG_TEMPFAIL = 3
enum  DraggingState { DRAG_NOT = 0, DRAG_OK = 1, DRAG_INVALID = 2, DRAG_TEMPFAIL = 3 }

Private Member Functions

void writeSaveInfo (ODataSource *ods)
void save (ODataSource *ods)
bool load (IDataSource *ids, uint32 version)
void SDLInit ()
void resetEngine ()
void setupCoreGumps ()
void fullReset ()
void GraphicSysInit ()
bool LoadConsoleFont (std::string confontini)
void handleDelayedEvents ()
int getMouseFrame ()
void CreateHWCursors ()
void startDragging (int mx, int my)
void moveDragging (int mx, int my)
void stopDragging (int mx, int my)

Static Private Member Functions

static LRESULT CALLBACK myWindowProc (HWND, UINT, WPARAM, LPARAM)
static void conAutoPaint (void)
static void ConCmd_saveGame (const Console::ArgvType &argv)
static void ConCmd_loadGame (const Console::ArgvType &argv)
static void ConCmd_newGame (const Console::ArgvType &argv)
static void ConCmd_quit (const Console::ArgvType &argv)
static void ConCmd_changeGame (const Console::ArgvType &argv)
static void ConCmd_listGames (const Console::ArgvType &argv)
static void ConCmd_setVideoMode (const Console::ArgvType &argv)
static void ConCmd_toggleFullscreen (const Console::ArgvType &argv)
static void ConCmd_drawRenderStats (const Console::ArgvType &argv)
static void ConCmd_engineStats (const Console::ArgvType &argv)
static void ConCmd_toggleAvatarInStasis (const Console::ArgvType &argv)
static void ConCmd_togglePaintEditorItems (const Console::ArgvType &argv)
static void ConCmd_toggleShowTouchingItems (const Console::ArgvType &argv)
static void ConCmd_closeItemGumps (const Console::ArgvType &argv)

Private Attributes

uint32 save_count
Gamegame
Pentagram::istring change_gamename
Kernelkernel
ObjectManagerobjectmanager
HIDManagerhidmanager
UCMachineucmachine
RenderSurfacescreen
bool fullscreen
PaletteManagerpalettemanager
GameDatagamedata
Worldworld
FontManagerfontmanager
GumpdesktopGump
ConsoleGumpconsoleGump
GameMapGumpgameMapGump
ScalerGumpscalerGump
InverterGumpinverterGump
AvatarMoverProcessavatarMoverProcess
bool runSDLInit
sint32 lerpFactor
bool inBetweenFrame
bool frameSkip
bool frameLimit
bool interpolate
sint32 animationRate
bool avatarInStasis
bool paintEditorItems
bool painting
bool showTouching
int mouseX
int mouseY
TexturedefMouse
std::stack< MouseCursorcursors
uint32 flashingcursor
HWMouseCursorhwcursors
MButton mouseButton [MOUSE_LAST]
uint16 mouseOverGump
enum GUIApp::DraggingState dragging
ObjId dragging_objid
uint16 dragging_item_startgump
uint16 dragging_item_lastgump
int dragging_offsetX
int dragging_offsetY
unsigned int inversion
sint32 timeOffset
bool has_cheated
std::list< ObjIdtextmodes
bool drawRenderStats
bool ttfoverrides
Pentagram::AudioMixeraudiomixer

Detailed Description

Definition at line 65 of file GUIApp.h.


Member Enumeration Documentation

enum GUIApp::DraggingState [private]

Enumerator:
DRAG_NOT 
DRAG_OK 
DRAG_INVALID 
DRAG_TEMPFAIL 

Definition at line 286 of file GUIApp.h.

enum GUIApp::MouseCursor

Enumerator:
MOUSE_NORMAL 
MOUSE_NONE 
MOUSE_TARGET 
MOUSE_PENTAGRAM 
MOUSE_HAND 
MOUSE_QUILL 
MOUSE_MAGGLASS 
MOUSE_CROSS 

Definition at line 154 of file GUIApp.h.


Constructor & Destructor Documentation

GUIApp::GUIApp ( int  argc,
const char *const *  argv 
)

Definition at line 138 of file GUIApp.cpp.

References Console::AddConsoleCommand(), CoreApp::application, con, Kernel::ConCmd_advanceFrame(), HIDManager::ConCmd_bind(), ConCmd_changeGame(), ConCmd_closeItemGumps(), ConCmd_drawRenderStats(), GameMapGump::ConCmd_dumpMap(), ConCmd_engineStats(), HIDManager::ConCmd_listbinds(), ConCmd_listGames(), Kernel::ConCmd_listProcesses(), AudioProcess::ConCmd_listSFX(), MemoryManager::ConCmd_MemInfo(), ObjectManager::ConCmd_objectInfo(), ObjectManager::ConCmd_objectTypes(), AudioProcess::ConCmd_playSFX(), Kernel::ConCmd_processInfo(), Kernel::ConCmd_processTypes(), ConCmd_quit(), HIDManager::ConCmd_save(), ConCmd_setVideoMode(), MenuGump::ConCmd_showMenu(), QuickAvatarMoverProcess::ConCmd_startAscend(), QuickAvatarMoverProcess::ConCmd_startDescend(), QuickAvatarMoverProcess::ConCmd_startMoveDown(), QuickAvatarMoverProcess::ConCmd_startMoveLeft(), QuickAvatarMoverProcess::ConCmd_startMoveRight(), QuickAvatarMoverProcess::ConCmd_startMoveUp(), QuickAvatarMoverProcess::ConCmd_stopAscend(), QuickAvatarMoverProcess::ConCmd_stopDescend(), QuickAvatarMoverProcess::ConCmd_stopMoveDown(), QuickAvatarMoverProcess::ConCmd_stopMoveLeft(), QuickAvatarMoverProcess::ConCmd_stopMoveRight(), QuickAvatarMoverProcess::ConCmd_stopMoveUp(), AudioProcess::ConCmd_stopSFX(), MemoryManager::ConCmd_test(), ConCmd_toggleAvatarInStasis(), QuickAvatarMoverProcess::ConCmd_toggleClipping(), Kernel::ConCmd_toggleFrameByFrame(), ConCmd_toggleFullscreen(), GameMapGump::ConCmd_toggleHighlightItems(), ConCmd_togglePaintEditorItems(), QuickAvatarMoverProcess::ConCmd_toggleQuarterSpeed(), ConCmd_toggleShowTouchingItems(), ShapeViewerGump::ConCmd_U8ShapeViewer(), HIDManager::ConCmd_unbind(), QuitGump::ConCmd_verifyQuit(), MButton::lastDown, MBS_HANDLED, MOUSE_LAST, mouseButton, and MButton::state.

GUIApp::~GUIApp (  )  [virtual]

Definition at line 241 of file GUIApp.cpp.

References audiomixer, con, Kernel::ConCmd_advanceFrame(), HIDManager::ConCmd_bind(), ConCmd_changeGame(), ConCmd_closeItemGumps(), ConCmd_drawRenderStats(), GameMapGump::ConCmd_dumpMap(), ConCmd_engineStats(), HIDManager::ConCmd_listbinds(), ConCmd_listGames(), Kernel::ConCmd_listProcesses(), AudioProcess::ConCmd_listSFX(), MemoryManager::ConCmd_MemInfo(), ObjectManager::ConCmd_objectInfo(), ObjectManager::ConCmd_objectTypes(), AudioProcess::ConCmd_playSFX(), Kernel::ConCmd_processInfo(), Kernel::ConCmd_processTypes(), ConCmd_quit(), HIDManager::ConCmd_save(), ConCmd_setVideoMode(), MenuGump::ConCmd_showMenu(), QuickAvatarMoverProcess::ConCmd_startAscend(), QuickAvatarMoverProcess::ConCmd_startDescend(), QuickAvatarMoverProcess::ConCmd_startMoveDown(), QuickAvatarMoverProcess::ConCmd_startMoveLeft(), QuickAvatarMoverProcess::ConCmd_startMoveRight(), QuickAvatarMoverProcess::ConCmd_startMoveUp(), QuickAvatarMoverProcess::ConCmd_stopAscend(), QuickAvatarMoverProcess::ConCmd_stopDescend(), QuickAvatarMoverProcess::ConCmd_stopMoveDown(), QuickAvatarMoverProcess::ConCmd_stopMoveLeft(), QuickAvatarMoverProcess::ConCmd_stopMoveRight(), QuickAvatarMoverProcess::ConCmd_stopMoveUp(), AudioProcess::ConCmd_stopSFX(), MemoryManager::ConCmd_test(), ConCmd_toggleAvatarInStasis(), QuickAvatarMoverProcess::ConCmd_toggleClipping(), Kernel::ConCmd_toggleFrameByFrame(), ConCmd_toggleFullscreen(), GameMapGump::ConCmd_toggleHighlightItems(), ConCmd_togglePaintEditorItems(), QuickAvatarMoverProcess::ConCmd_toggleQuarterSpeed(), ConCmd_toggleShowTouchingItems(), ShapeViewerGump::ConCmd_U8ShapeViewer(), HIDManager::ConCmd_unbind(), QuitGump::ConCmd_verifyQuit(), defMouse, fontmanager, gamedata, hidmanager, kernel, objectmanager, palettemanager, Console::RemoveConsoleCommand(), screen, shutdown(), ucmachine, and world.


Member Function Documentation

void GUIApp::addGump ( Gump gump  ) 

add a gump to the right core gump (such as desktopgump)

Parameters:
gump the gump to be added

Definition at line 2185 of file GUIApp.cpp.

References Gump::AddChild(), desktopGump, inverterGump, and scalerGump.

Referenced by Gump::InitGump(), and ObjectManager::load().

void GUIApp::changeGame ( Pentagram::istring  newgame  ) 

Definition at line 674 of file GUIApp.cpp.

References change_gamename.

Referenced by PentagramMenuGump::ChildNotify(), and ConCmd_changeGame().

void GUIApp::changeVideoMode ( int  width,
int  height,
int  fullscreen = -1 
)

Definition at line 1340 of file GUIApp.cpp.

References fullscreen, GraphicSysInit(), SettingManager::set(), and CoreApp::settingman.

Referenced by ConCmd_setVideoMode(), and ConCmd_toggleFullscreen().

void GUIApp::conAutoPaint ( void   )  [static, private]

Definition at line 785 of file GUIApp.cpp.

References get_instance(), isPainting(), and paint().

Referenced by startup(), startupGame(), and startupPentagramMenu().

void GUIApp::ConCmd_changeGame ( const Console::ArgvType argv  )  [static, private]

"GuiApp::changeGame" console command

Definition at line 2341 of file GUIApp.cpp.

References changeGame(), CoreApp::gameinfo, get_instance(), GameInfo::name, and pout.

Referenced by GUIApp(), and ~GUIApp().

void GUIApp::ConCmd_closeItemGumps ( const Console::ArgvType argv  )  [static, private]

"GUIApp::closeItemGumps" console command

Definition at line 2417 of file GUIApp.cpp.

References Gump::CloseItemDependents(), get_instance(), and getDesktopGump().

Referenced by GUIApp(), and ~GUIApp().

void GUIApp::ConCmd_drawRenderStats ( const Console::ArgvType argv  )  [static, private]

"GUIApp::drawRenderStats" console command

Definition at line 2321 of file GUIApp.cpp.

References drawRenderStats, get_instance(), and pout.

Referenced by GUIApp(), and ~GUIApp().

void GUIApp::ConCmd_engineStats ( const Console::ArgvType argv  )  [static, private]

"GUIApp::engineStats" console command

Definition at line 2333 of file GUIApp.cpp.

References World::get_instance(), UCMachine::get_instance(), ObjectManager::get_instance(), Kernel::get_instance(), Kernel::kernelStats(), ObjectManager::objectStats(), UCMachine::usecodeStats(), and World::worldStats().

Referenced by GUIApp(), and ~GUIApp().

void GUIApp::ConCmd_listGames ( const Console::ArgvType argv  )  [static, private]

"GuiApp::listGames" console command

Definition at line 2353 of file GUIApp.cpp.

References con, game, CoreApp::games, get_instance(), CoreApp::getGameInfo(), GameInfo::getPrintDetails(), SettingManager::listGames(), MM_INFO, Console::Print(), Console::Printf(), and CoreApp::settingman.

Referenced by GUIApp(), and ~GUIApp().

void GUIApp::ConCmd_loadGame ( const Console::ArgvType argv  )  [static, private]

"GUIApp::loadGame <filename>" console command

Definition at line 2297 of file GUIApp.cpp.

References get_instance(), loadGame(), and pout.

Referenced by shutdownGame(), and startupGame().

void GUIApp::ConCmd_newGame ( const Console::ArgvType argv  )  [static, private]

"GUIApp::newGame" console command

Definition at line 2310 of file GUIApp.cpp.

References get_instance(), and newGame().

Referenced by shutdownGame(), and startupGame().

void GUIApp::ConCmd_quit ( const Console::ArgvType argv  )  [static, private]

"quit" console command

Definition at line 2316 of file GUIApp.cpp.

References get_instance(), and CoreApp::isRunning.

Referenced by GUIApp(), and ~GUIApp().

void GUIApp::ConCmd_saveGame ( const Console::ArgvType argv  )  [static, private]

"GUIApp::saveGame <filename>" console command

Definition at line 2284 of file GUIApp.cpp.

References get_instance(), pout, and saveGame().

Referenced by shutdownGame(), and startupGame().

void GUIApp::ConCmd_setVideoMode ( const Console::ArgvType argv  )  [static, private]

"GuiApp::setVideoMode" console command

Definition at line 2373 of file GUIApp.cpp.

References changeVideoMode(), fullscreen, get_instance(), and pout.

Referenced by GUIApp(), and ~GUIApp().

void GUIApp::ConCmd_toggleAvatarInStasis ( const Console::ArgvType argv  )  [static, private]

"GUIApp::toggleAvatarInStasis" console command

Definition at line 2396 of file GUIApp.cpp.

References get_instance(), isAvatarInStasis(), pout, and toggleAvatarInStasis().

Referenced by GUIApp(), and ~GUIApp().

void GUIApp::ConCmd_toggleFullscreen ( const Console::ArgvType argv  )  [static, private]

"GuiApp::toggleFullscreen" console command

Definition at line 2391 of file GUIApp.cpp.

References changeVideoMode(), and get_instance().

Referenced by GUIApp(), and ~GUIApp().

void GUIApp::ConCmd_togglePaintEditorItems ( const Console::ArgvType argv  )  [static, private]

"GUIApp::togglePaintEditorItems" console command

Definition at line 2403 of file GUIApp.cpp.

References get_instance(), isPaintEditorItems(), pout, and togglePaintEditorItems().

Referenced by GUIApp(), and ~GUIApp().

void GUIApp::ConCmd_toggleShowTouchingItems ( const Console::ArgvType argv  )  [static, private]

"GUIApp::toggleShowTouchingItems" console command

Definition at line 2410 of file GUIApp.cpp.

References get_instance(), isShowTouchingItems(), pout, and toggleShowTouchingItems().

Referenced by GUIApp(), and ~GUIApp().

void GUIApp::CreateHWCursors (  )  [private]

Definition at line 823 of file GUIApp.cpp.

References BaseSoftRenderSurface::BeginPainting(), BaseSoftRenderSurface::EndPainting(), SoftRenderSurface< uintX >::Fill32(), RenderSurface::format, frame, Shape::frameCount(), gamedata, Shape::getFrame(), GameData::getMouse(), HWMouseCursor::hCursor, hwcursors, myWindowProc(), oldWindowProc, SoftRenderSurface< uintX >::Paint(), x, ShapeFrame::xoff, and y.

void GUIApp::DeclareArgs (  )  [protected, virtual]

Declare commandline arguments. Should call parent class' DeclareArgs().

Reimplemented from CoreApp.

Definition at line 679 of file GUIApp.cpp.

References CoreApp::DeclareArgs().

GUIApp::ENABLE_RUNTIME_CLASSTYPE (  ) 

Reimplemented from CoreApp.

void GUIApp::enterTextMode ( Gump  ) 

Enter gump text mode (aka SDL Unicode keyhandling).

Definition at line 1375 of file GUIApp.cpp.

References Object::getObjId(), and textmodes.

Referenced by ModalGump::InitGump(), ConsoleGump::Run(), and shutdownGame().

void GUIApp::flashCrossCursor (  ) 

flash the red cross mouse cursor for a brief while

Definition at line 1204 of file GUIApp.cpp.

References flashingcursor.

Referenced by GameMapGump::OnMouseDouble(), and ContainerGump::OnMouseDouble().

void GUIApp::fullReset (  )  [private]

Does a Full reset of the Engine (including shutting down Video).

static GUIApp* GUIApp::get_instance (  )  [inline, static]

Reimplemented from CoreApp.

Definition at line 73 of file GUIApp.h.

References CoreApp::application.

Referenced by QuitGump::ChildNotify(), PentagramMenuGump::ChildNotify(), PaperdollGump::ChildNotify(), TargetGump::Close(), PagedGump::Close(), MovieGump::Close(), ModalGump::Close(), MenuGump::Close(), CreditsGump::Close(), Item::closeGump(), Item::collideMove(), conAutoPaint(), ConCmd_changeGame(), ScalerGump::ConCmd_changeScaler(), ConCmd_closeItemGumps(), ConCmd_drawRenderStats(), ConCmd_listGames(), ConCmd_loadGame(), ConCmd_newGame(), ConCmd_quit(), ConCmd_saveGame(), ConCmd_setVideoMode(), MiniMapGump::ConCmd_toggle(), FastAreaVisGump::ConCmd_toggle(), ConsoleGump::ConCmd_toggle(), ConCmd_toggleAvatarInStasis(), MainActor::ConCmd_toggleCombat(), ConCmd_toggleFullscreen(), ConCmd_togglePaintEditorItems(), ConCmd_toggleShowTouchingItems(), MainActor::ConCmd_useBackpack(), MainActor::ConCmd_useInventory(), MainActor::die(), SliderGump::DraggingChild(), DesktopGump::DraggingChild(), GameMapGump::DraggingItem(), ContainerGump::DraggingItem(), drawbox(), drawdot(), drawedge(), GameMapGump::DropItem(), ContainerGump::DropItem(), GameWidget::GameWidget(), InverterGump::GumpToParent(), AvatarMoverProcess::handleCombatMode(), AvatarMoverProcess::handleHangingMode(), AvatarMoverProcess::handleNormalMode(), ConsoleGump::HideConsole(), TargetGump::InitGump(), PentagramMenuGump::InitGump(), PagedGump::InitGump(), MovieGump::InitGump(), ModalGump::InitGump(), Gump::InitGump(), CreditsGump::InitGump(), InverterProcess::invertScreen(), AvatarMoverProcess::jump(), Item::leaveFastArea(), ObjectManager::load(), U8SaveGump::loadgame(), CurrentMap::loadMap(), MenuGump::MenuGump(), myWindowProc(), Pathfinder::newNode(), U8SaveGump::OnFocus(), GameMapGump::OnMouseClick(), ContainerGump::OnMouseClick(), GameMapGump::OnMouseDouble(), ContainerGump::OnMouseDouble(), GameMapGump::OnMouseDown(), GameMapGump::OnMouseUp(), QuitGump::OnTextInput(), InverterGump::PaintChildren(), GameMapGump::PaintThis(), DesktopGump::PaintThis(), ContainerGump::PaintThis(), InverterGump::ParentToGump(), Pathfinder::pathfind(), QuitGump::QuitGump(), StartU8Process::run(), SchedulerProcess::run(), QuickAvatarMoverProcess::run(), JoystickCursorProcess::run(), InverterProcess::run(), ConsoleGump::Run(), AvatarGravityProcess::run(), U8SaveGump::savegame(), SliderGump::StartDraggingChild(), DesktopGump::StartDraggingChild(), PaperdollGump::StartDraggingItem(), GameMapGump::StartDraggingItem(), ContainerGump::StartDraggingItem(), U8Game::startGame(), RemorseGame::startGame(), QuickAvatarMoverProcess::startMover(), World::switchMap(), ConsoleGump::ToggleConsole(), ContainerGump::TraceObjId(), U8Game::U8Game(), ShapeViewerGump::U8ShapeViewer(), CurrentMap::updateFastArea(), MainActor::useInventoryItem(), and QuitGump::~QuitGump().

AvatarMoverProcess* GUIApp::getAvatarMoverProcess (  )  [inline]

Definition at line 123 of file GUIApp.h.

References avatarMoverProcess.

Referenced by GameMapGump::OnMouseDown(), and GameMapGump::OnMouseUp().

ConsoleGump* GUIApp::getConsoleGump (  )  [inline]

Definition at line 115 of file GUIApp.h.

References consoleGump.

Referenced by ConsoleGump::ConCmd_toggle(), and DesktopGump::PaintThis().

Gump* GUIApp::getDesktopGump (  )  [inline]

Definition at line 116 of file GUIApp.h.

References desktopGump.

Referenced by PaperdollGump::ChildNotify(), ScalerGump::ConCmd_changeScaler(), ConCmd_closeItemGumps(), MiniMapGump::ConCmd_toggle(), FastAreaVisGump::ConCmd_toggle(), AvatarMoverProcess::handleCombatMode(), AvatarMoverProcess::handleNormalMode(), World::switchMap(), and ShapeViewerGump::U8ShapeViewer().

void GUIApp::getDraggingOffset ( int &  x,
int &  y 
) [inline]

Definition at line 301 of file GUIApp.h.

References dragging_offsetX, and dragging_offsetY.

Referenced by SliderGump::DraggingChild(), DesktopGump::DraggingChild(), GameMapGump::DraggingItem(), ContainerGump::DraggingItem(), GameMapGump::DropItem(), and ContainerGump::DropItem().

GameMapGump* GUIApp::getGameMapGump (  )  [inline]

Definition at line 114 of file GUIApp.h.

References gameMapGump.

Referenced by drawbox(), drawdot(), drawedge(), AvatarMoverProcess::jump(), and CurrentMap::updateFastArea().

uint32 GUIApp::getGameTimeInSeconds (  ) 

Definition at line 2222 of file GUIApp.cpp.

References Kernel::get_instance(), and timeOffset.

Referenced by CurrentMap::loadMap(), SchedulerProcess::run(), and writeSaveInfo().

Gump * GUIApp::getGump ( uint16  gumpid  ) 

Definition at line 2179 of file GUIApp.cpp.

References ObjectManager::get_instance(), and getObject().

Referenced by Item::closeGump(), handleDelayedEvents(), handleEvent(), Item::leaveFastArea(), moveDragging(), saveGame(), setMouseCoords(), startDragging(), and stopDragging().

unsigned int GUIApp::getInversion (  )  const [inline]

Definition at line 304 of file GUIApp.h.

References inversion.

Referenced by InverterGump::PaintChildren(), and InverterProcess::run().

void GUIApp::getMouseCoords ( int &  mx,
int &  my 
) [inline]

get current mouse cursor location

Definition at line 147 of file GUIApp.h.

References mouseX, and mouseY.

Referenced by AvatarMoverProcess::handleCombatMode(), AvatarMoverProcess::handleNormalMode(), AvatarMoverProcess::jump(), and JoystickCursorProcess::run().

int GUIApp::getMouseDirection ( int  mx,
int  my 
)

get mouse cursor direction. 0 = up, 1 = up-right, 2 = right, etc...

constant

Definition at line 1052 of file GUIApp.cpp.

References Get_direction(), RenderSurface::GetSurfaceDims(), Pentagram::Rect::h, screen, and Pentagram::Rect::w.

Referenced by getMouseFrame(), AvatarMoverProcess::handleCombatMode(), and AvatarMoverProcess::handleNormalMode().

int GUIApp::getMouseFrame (  )  [private]

get the current mouse frame

length --- frame offset 0 0 1 8 2 16 combat 25

! constants...

Definition at line 1063 of file GUIApp.cpp.

References cursors, flashingcursor, frame, getMainActor(), getMouseDirection(), getMouseLength(), Actor::isInCombat(), MOUSE_CROSS, MOUSE_HAND, MOUSE_MAGGLASS, MOUSE_NONE, MOUSE_NORMAL, MOUSE_PENTAGRAM, MOUSE_QUILL, MOUSE_TARGET, mouseX, and mouseY.

Referenced by myWindowProc(), and paint().

int GUIApp::getMouseLength ( int  mx,
int  my 
)

get mouse cursor length. 0 = short, 1 = medium, 2 = long

constant

Definition at line 1022 of file GUIApp.cpp.

References RenderSurface::GetSurfaceDims(), Pentagram::Rect::h, screen, and Pentagram::Rect::w.

Referenced by getMouseFrame(), AvatarMoverProcess::handleCombatMode(), and AvatarMoverProcess::handleNormalMode().

RenderSurface* GUIApp::getScreen (  )  [inline]

Definition at line 85 of file GUIApp.h.

References screen.

Referenced by drawbox(), drawdot(), drawedge(), Pathfinder::newNode(), and Pathfinder::pathfind().

void GUIApp::GraphicSysInit (  )  [private]

Definition at line 1219 of file GUIApp.cpp.

References con, consoleGump, Texture::Create(), defMouse, desktopGump, CoreApp::filesystem, fontmanager, RenderSurface::format, fullscreen, SettingManager::get(), RenderSurface::GetSurfaceDims(), Pentagram::Rect::h, height, Gump::InitGump(), LoadConsoleFont(), FontManager::loadTTFont(), Gump::MakeFocus(), MM_INFO, paint(), palettemanager, perr, Console::Print(), Console::Printf(), pushMouseCursor(), FileSystem::ReadFile(), PaletteManager::RenderSurfaceChanged(), screen, SettingManager::set(), SettingManager::setDefault(), CoreApp::settingman, RenderSurface::SetVideoMode(), Pentagram::Rect::w, and width.

Referenced by changeVideoMode(), startup(), startupGame(), and startupPentagramMenu().

void GUIApp::handleDelayedEvents (  )  [pr