#include <GUIApp.h>
Inheritance diagram for GUIApp:

Definition at line 65 of file GUIApp.h.
enum GUIApp::DraggingState [private] |
| enum GUIApp::MouseCursor |
| 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.
| void GUIApp::addGump | ( | Gump * | gump | ) |
add a gump to the right core gump (such as desktopgump)
| 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.
| 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().
| 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.
| 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().
| 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.
| 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.
| 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.
| 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().
| 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().
| 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().
| 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().
| 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().
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 |