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 (  )  [private]

Definition at line 1638 of file GUIApp.cpp.

References DOUBLE_CLICK_TIMEOUT, MButton::downGump, MButton::downY, getGump(), MBS_DOWN, MBS_HANDLED, MOUSE_LAST, mouseButton, Gump::ScreenSpaceToGump(), and MButton::state.

Referenced by run().

void GUIApp::handleEvent ( const SDL_Event &  event  )  [virtual]

Definition at line 1397 of file GUIApp.cpp.

References BUTTON_LEFT, MButton::curDown, desktopGump, DOUBLE_CLICK_TIMEOUT, MButton::downGump, MButton::downX, MButton::downY, DRAG_NOT, dragging, CoreApp::ForceQuit(), gameMapGump, getGump(), ObjectManager::getObject(), Object::getObjId(), Gump::GetParent(), HIDManager::handleEvent(), hidmanager, GameMapGump::IncSortOrder(), CoreApp::isRunning, MButton::lastDown, MBS_DOWN, MBS_HANDLED, MOUSE_LAST, mouseButton, objectmanager, Gump::OnMouseDouble(), Gump::OnMouseDown(), Gump::OnMouseUp(), Gump::ScreenSpaceToGump(), setMouseCoords(), MButton::state, stopDragging(), and textmodes.

Referenced by run().

bool GUIApp::hasCheated (  )  const [inline]

Definition at line 317 of file GUIApp.h.

References has_cheated.

GUIApp::INTRINSIC ( I_closeItemGumps   ) 

GUIApp::INTRINSIC ( I_makeAvatarACheater   ) 

GUIApp::INTRINSIC ( I_setTimeInGameHours   ) 

GUIApp::INTRINSIC ( I_getTimeInSeconds   ) 

GUIApp::INTRINSIC ( I_getTimeInMinutes   ) 

GUIApp::INTRINSIC ( I_getTimeInGameHours   ) 

GUIApp::INTRINSIC ( I_getAvatarInStasis   ) 

GUIApp::INTRINSIC ( I_setAvatarInStasis   ) 

GUIApp::INTRINSIC ( I_getCurrentTimerTick   ) 

bool GUIApp::isAvatarInStasis (  )  const [inline]

Definition at line 105 of file GUIApp.h.

References avatarInStasis.

Referenced by ConCmd_toggleAvatarInStasis(), AvatarMoverProcess::handleCombatMode(), AvatarMoverProcess::handleHangingMode(), AvatarMoverProcess::handleNormalMode(), startDragging(), and QuickAvatarMoverProcess::startMover().

bool GUIApp::isInverted (  )  [inline]

Definition at line 306 of file GUIApp.h.

References inversion.

bool GUIApp::isMouseDown ( MouseButton  button  ) 

Definition at line 1017 of file GUIApp.cpp.

References MBS_DOWN, and mouseButton.

bool GUIApp::isPaintEditorItems (  )  const [inline]

Definition at line 107 of file GUIApp.h.

References paintEditorItems.

Referenced by ConCmd_togglePaintEditorItems(), GameMapGump::PaintThis(), ContainerGump::PaintThis(), and ContainerGump::TraceObjId().

virtual bool GUIApp::isPainting (  )  [inline, virtual]

Reimplemented from CoreApp.

Definition at line 91 of file GUIApp.h.

References painting.

Referenced by conAutoPaint().

bool GUIApp::isShowTouchingItems (  )  const [inline]

Definition at line 109 of file GUIApp.h.

References showTouching.

Referenced by Item::collideMove(), and ConCmd_toggleShowTouchingItems().

void GUIApp::leaveTextMode ( Gump  ) 

Leave gump text mode (aka SDL Unicode keyhandling).

Definition at line 1387 of file GUIApp.cpp.

References Object::getObjId(), and textmodes.

Referenced by ModalGump::Close(), ConsoleGump::HideConsole(), and ConsoleGump::ToggleConsole().

bool GUIApp::load ( IDataSource ids,
uint32  version 
) [private]

load CoreApp/GUIApp data

Definition at line 2250 of file GUIApp.cpp.

References avatarInStasis, avatarMoverProcess, PaletteManager::get_instance(), Kernel::get_instance(), Kernel::getFrameNum(), PaletteManager::getPalette(), Kernel::getProcess(), has_cheated, inversion, mouseOverGump, pal, PaletteManager::Pal_Game, IDataSource::read1(), IDataSource::read2(), IDataSource::read4(), save_count, timeOffset, and PaletteManager::transformPalette().

Referenced by loadGame().

bool GUIApp::LoadConsoleFont ( std::string  confontini  )  [private]

Definition at line 1352 of file GUIApp.cpp.

References con, CoreApp::configfileman, FixedWidthFont::Create(), MM_INFO, perr, pout, Console::Printf(), ConfigFileManager::readConfigFile(), and Console::SetConFont().

Referenced by GraphicSysInit().

bool GUIApp::loadGame ( std::string  filename  ) 

load a game

Parameters:
filename the savegame to load
Returns:
true if succesful.

Definition at line 2052 of file GUIApp.cpp.

References con, CoreApp::filesystem, CoreApp::gameinfo, SettingManager::get(), World::getCurrentMap(), Savegame::getDataSource(), GameInfo::getPrintDetails(), Savegame::getVersion(), kernel, ObjectManager::load(), CurrentMap::load(), World::load(), load(), Kernel::load(), GameInfo::load(), UCMachine::loadGlobals(), UCMachine::loadLists(), World::loadMaps(), UCMachine::loadStrings(), GameInfo::match(), MM_INFO, objectmanager, perr, pout, Console::Print(), FileSystem::ReadFile(), resetEngine(), Pentagram::savegame_version, SettingManager::setDefault(), CoreApp::settingman, setupCoreGumps(), ucmachine, PentagramVersion::version, and world.

Referenced by ConCmd_loadGame(), U8SaveGump::loadgame(), and startupGame().

void GUIApp::makeCheater (  )  [inline]

Definition at line 318 of file GUIApp.h.

References has_cheated.

void GUIApp::moveDragging ( int  mx,
int  my 
) [private]

Definition at line 1726 of file GUIApp.cpp.

References desktopGump, DRAG_OK, DRAG_TEMPFAIL, dragging, dragging_item_lastgump, dragging_objid, Gump::DraggingChild(), Gump::DraggingItem(), Gump::DraggingItemLeftGump(), Gump::FindGump(), getGump(), getItem(), Object::getObjId(), Gump::GetParent(), MOUSE_CROSS, MOUSE_NORMAL, Gump::ScreenSpaceToGump(), and setMouseCursor().

Referenced by setMouseCoords().

LRESULT CALLBACK GUIApp::myWindowProc ( HWND  ,
UINT  ,
WPARAM  ,
LPARAM   
) [static, private]

Definition at line 796 of file GUIApp.cpp.

References allow_set_cursor, frame, gamedata, get_instance(), GameData::getMouse(), getMouseFrame(), HWMouseCursor::hCursor, hwcursors, and oldWindowProc.

Referenced by CreateHWCursors().

bool GUIApp::newGame (  ) 

start a new game

Returns:
true if succesful.

Definition at line 2015 of file GUIApp.cpp.

References Kernel::addProcess(), audiomixer, avatarMoverProcess, con, Pentagram::AudioMixer::createProcesses(), game, kernel, MM_INFO, Console::Print(), resetEngine(), CameraProcess::SetCameraProcess(), setupCoreGumps(), Game::startGame(), and Game::startInitialUsecode().

Referenced by ConCmd_newGame(), U8SaveGump::loadgame(), and startupGame().

void GUIApp::paint (  )  [virtual]

Implements CoreApp.

Definition at line 947 of file GUIApp.cpp.

References allow_set_cursor, RenderSurface::BeginPainting(), RenderSurface::Blit(), con, defMouse, desktopGump, drawRenderStats, RenderSurface::EndPainting(), frame, gamedata, Console::GetConFont(), GameData::getMouse(), getMouseFrame(), RenderSurface::GetSurfaceDims(), FixedWidthFont::height, Texture::height, hwcursors, lerpFactor, mouseX, mouseY, RenderSurface::Paint(), Gump::Paint(), painting, prev, RenderSurface::PrintTextFixed(), screen, snprintf(), Pentagram::Rect::w, FixedWidthFont::width, and Texture::width.

Referenced by conAutoPaint(), GraphicSysInit(), run(), and startup().

void GUIApp::popMouseCursor (  ) 

pop the last mouse cursor from the stack

Definition at line 1214 of file GUIApp.cpp.

References cursors.

Referenced by TargetGump::Close(), PagedGump::Close(), MovieGump::Close(), MenuGump::Close(), CreditsGump::Close(), stopDragging(), and QuitGump::~QuitGump().

void GUIApp::pushMouseCursor (  ) 

push the current mouse cursor to the stack

Definition at line 1209 of file GUIApp.cpp.

References cursors, and MOUSE_NORMAL.

Referenced by GraphicSysInit(), TargetGump::InitGump(), PagedGump::InitGump(), MovieGump::InitGump(), CreditsGump::InitGump(), MenuGump::MenuGump(), QuitGump::QuitGump(), resetEngine(), shutdownGame(), and startDragging().

void GUIApp::resetEngine (  )  [private]

reset engine (including World, UCMachine, a.o.)

Definition at line 1931 of file GUIApp.cpp.

References Kernel::addProcess(), audiomixer, con, consoleGump, cursors, desktopGump, gameMapGump, Kernel::get_instance(), Kernel::getFrameNum(), has_cheated, inversion, inverterGump, JOY1, kernel, MM_INFO, objectmanager, palettemanager, Console::Print(), pushMouseCursor(), Kernel::reset(), ObjectManager::reset(), UCMachine::reset(), World::reset(), Pentagram::AudioMixer::reset(), PaletteManager::resetTransforms(), save_count, scalerGump, textmodes, timeOffset, ucmachine, and world.

Referenced by loadGame(), and newGame().

void GUIApp::run (  )  [virtual]

Implements CoreApp.

Definition at line 687 of file GUIApp.cpp.

References animationRate, change_gamename, desktopGump, frameLimit, frameSkip, Kernel::getFrameNum(), CoreApp::getGameInfo(), HIDManager::handleDelayedEvents(), handleDelayedEvents(), handleEvent(), hidmanager, inBetweenFrame, interpolate, Kernel::isPaused(), CoreApp::isRunning, kernel, lerpFactor, paint(), perr, pout, Gump::Run(), Kernel::runProcesses(), CoreApp::setupGame(), shutdownGame(), startupGame(), and startupPentagramMenu().

Referenced by main().

void GUIApp::save ( ODataSource ods  )  [private]

save CoreApp/GUIApp data

Definition at line 2229 of file GUIApp.cpp.

References avatarInStasis, avatarMoverProcess, PaletteManager::get_instance(), Kernel::get_instance(), Kernel::getFrameNum(), PaletteManager::getPalette(), Process::getPid(), has_cheated, inversion, pal, PaletteManager::Pal_Game, save_count, timeOffset, ODataSource::write1(), ODataSource::write2(), and ODataSource::write4().

Referenced by saveGame().

bool GUIApp::saveGame ( std::string  filename,
std::string  desc,
bool  ignore_modals = false 
)

save a game

Parameters:
filename the file to save to
Returns:
true if succesful

Definition at line 1837 of file GUIApp.cpp.

References Actor::ACT_DEAD, desktopGump, CoreApp::filesystem, Gump::FindGump(), SavegameWriter::finish(), CoreApp::gameinfo, Actor::getActorFlags(), World::getCurrentMap(), getGump(), getMainActor(), kernel, mouseOverGump, objectmanager, Gump::OnMouseLeft(), Gump::OnMouseOver(), pout, save(), CurrentMap::save(), World::save(), ObjectManager::save(), Kernel::save(), GameInfo::save(), save_count, Pentagram::savegame_version, UCMachine::saveGlobals(), UCMachine::saveLists(), World::saveMaps(), UCMachine::saveStrings(), ucmachine, world, SavegameWriter::writeDescription(), SavegameWriter::writeFile(), FileSystem::WriteFile(), writeSaveInfo(), and SavegameWriter::writeVersion().

Referenced by ConCmd_saveGame(), and U8SaveGump::savegame().

void GUIApp::SDLInit (  )  [private]

start SDL

Definition at line 317 of file GUIApp.cpp.

References con, MM_INFO, and Console::Print().

Referenced by startup().

void GUIApp::setAvatarInStasis ( bool  stat  )  [inline]

Definition at line 104 of file GUIApp.h.

References avatarInStasis.

Referenced by MainActor::die(), StartU8Process::run(), U8Game::startGame(), and RemorseGame::startGame().

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

Definition at line 299 of file GUIApp.h.

References dragging_offsetX, and dragging_offsetY.

Referenced by startDragging(), SliderGump::StartDraggingChild(), DesktopGump::StartDraggingChild(), PaperdollGump::StartDraggingItem(), GameMapGump::StartDraggingItem(), and ContainerGump::StartDraggingItem().

void GUIApp::setInversion ( unsigned int  i  )  [inline]

Definition at line 305 of file GUIApp.h.

References inversion.

Referenced by InverterProcess::run().

void GUIApp::setMouseCoords ( int  mx,
int  my 
)

set current mouse cursor location

Definition at line 1124 of file GUIApp.cpp.

References BUTTON_LEFT, desktopGump, MButton::downX, MButton::downY, DRAG_NOT, DRAG_OK, DRAG_TEMPFAIL, dragging, getGump(), Object::getObjId(), Gump::GetParent(), RenderSurface::GetSurfaceDims(), Pentagram::Rect::h, MBS_DOWN, mouseButton, mouseOverGump, mouseX, mouseY, moveDragging(), Gump::OnMouseLeft(), Gump::OnMouseMotion(), screen, startDragging(), Pentagram::Rect::w, Pentagram::Rect::x, and Pentagram::Rect::y.

Referenced by handleEvent(), and JoystickCursorProcess::run().

void GUIApp::setMouseCursor ( MouseCursor  cursor  ) 

set the current mouse cursor

Definition at line 1198 of file GUIApp.cpp.

References cursors.

Referenced by GameMapGump::DraggingItem(), ContainerGump::DraggingItem(), TargetGump::InitGump(), PagedGump::InitGump(), MovieGump::InitGump(), CreditsGump::InitGump(), MenuGump::MenuGump(), moveDragging(), U8SaveGump::OnFocus(), QuitGump::QuitGump(), and startDragging().

void GUIApp::setupCoreGumps (  )  [private]

create core gumps (DesktopGump, GameMapGump, ConsoleGump, ...)

Definition at line 1970 of file GUIApp.cpp.

References con, consoleGump, desktopGump, gameMapGump, Gump::GetDims(), Object::getObjId(), RenderSurface::GetSurfaceDims(), Pentagram::Rect::h, ConsoleGump::HideConsole(), Gump::InitGump(), inverterGump, Gump::MakeFocus(), MM_INFO, objectmanager, Console::Print(), ObjectManager::reserveObjId(), scalerGump, screen, and Pentagram::Rect::w.

Referenced by loadGame(), and newGame().

void GUIApp::shutdown (  ) 

Definition at line 577 of file GUIApp.cpp.

References shutdownGame().

Referenced by ~GUIApp().

void GUIApp::shutdownGame ( bool  reloading = true  ) 

Definition at line 582 of file GUIApp.cpp.

References audiomixer, Pentagram::AudioMixer::closeMidiOutput(), con, MainActor::ConCmd_heal(), InverterProcess::ConCmd_invertScreen(), MainActor::ConCmd_listmarks(), ConCmd_loadGame(), MainActor::ConCmd_mark(), MainActor::ConCmd_maxstats(), MainActor::ConCmd_name(), ConCmd_newGame(), MovieGump::ConCmd_play(), MusicProcess::ConCmd_playMusic(), MainActor::ConCmd_recall(), ConCmd_saveGame(), MainActor::ConCmd_teleport(), MiniMapGump::ConCmd_toggle(), FastAreaVisGump::ConCmd_toggle(), MainActor::ConCmd_toggleCombat(), MainActor::ConCmd_toggleInvincibility(), MainActor::ConCmd_useBackpack(), MainActor::ConCmd_useBedroll(), MainActor::ConCmd_useInventory(), MainActor::ConCmd_useKeyring(), MainActor::ConCmd_useRecall(), Pathfinder::ConCmd_visualDebug(), consoleGump, cursors, desktopGump, enterTextMode(), fontmanager, game, gamedata, gameMapGump, Kernel::get_instance(), Kernel::getFrameNum(), RenderSurface::GetSurfaceDims(), Pentagram::Rect::h, has_cheated, Gump::InitGump(), inversion, inverterGump, kernel, CoreApp::killGame(), Gump::MakeFocus(), MM_INFO, objectmanager, palettemanager, pout, Console::Print(), pushMouseCursor(), Console::RemoveConsoleCommand(), PaletteManager::reset(), Kernel::reset(), ObjectManager::reset(), Pentagram::AudioMixer::reset(), FontManager::resetGameFonts(), save_count, scalerGump, screen, textmodes, timeOffset, ucmachine, Pentagram::Rect::w, and world.

Referenced by run(), and shutdown().

void GUIApp::startDragging ( int  mx,
int  my 
) [private]

Definition at line 1662 of file GUIApp.cpp.

References BUTTON_LEFT, desktopGump, DRAG_INVALID, DRAG_OK, dragging, dragging_item_lastgump, dragging_item_startgump, dragging_objid, Gump::FindGump(), ObjectManager::get_instance(), getGump(), getItem(), ObjectManager::getObject(), Object::getObjId(), Gump::GetParent(), isAvatarInStasis(), Gump::IsDraggable(), kernel, MBS_HANDLED, MOUSE_CROSS, MOUSE_NORMAL, mouseButton, Kernel::pause(), perr, pushMouseCursor(), Gump::ScreenSpaceToGump(), setDraggingOffset(), setMouseCursor(), Gump::StartDraggingChild(), Gump::StartDraggingItem(), MButton::state, and Gump::TraceObjId().

Referenced by setMouseCoords().

void GUIApp::startup (  ) 

Startup the application. This will prepare the application for run(). Should call parent class' startup().

Reimplemented from CoreApp.

Definition at line 324 of file GUIApp.cpp.

References Kernel::addProcessLoader(), audiomixer, con, conAutoPaint(), SettingManager::DOM_GLOBAL, CoreApp::filesystem, SettingManager::get(), CoreApp::getDefaultGame(), GraphicSysInit(), hidmanager, FileSystem::initBuiltinData(), kernel, mouseX, mouseY, objectmanager, paint(), pout, SDLInit(), Console::SetAutoPaint(), CoreApp::settingman, CoreApp::setupGame(), CoreApp::setupGameList(), CoreApp::startup(), startupGame(), and startupPentagramMenu().

Referenced by main().

void GUIApp::startupGame (  ) 

Definition at line 443 of file GUIApp.cpp.

References Console::AddConsoleCommand(), audiomixer, con, conAutoPaint(), MainActor::ConCmd_heal(), InverterProcess::ConCmd_invertScreen(), MainActor::ConCmd_listmarks(), ConCmd_loadGame(), MainActor::ConCmd_mark(), MainActor::ConCmd_maxstats(), MainActor::ConCmd_name(), ConCmd_newGame(), MovieGump::ConCmd_play(), MusicProcess::ConCmd_playMusic(), MainActor::ConCmd_recall(), ConCmd_saveGame(), MainActor::ConCmd_teleport(), MiniMapGump::ConCmd_toggle(), FastAreaVisGump::ConCmd_toggle(), MainActor::ConCmd_toggleCombat(), MainActor::ConCmd_toggleInvincibility(), MainActor::ConCmd_useBackpack(), MainActor::ConCmd_useBedroll(), MainActor::ConCmd_useInventory(), MainActor::ConCmd_useKeyring(), MainActor::ConCmd_useRecall(), Pathfinder::ConCmd_visualDebug(), CoreApp::configfileman, consoleGump, Game::createGame(), game, GameInfo::GAME_U8, gamedata, CoreApp::gameinfo, SettingManager::get(), CoreApp::getGameInfo(), GameInfo::getGameTitle(), GraphicSysInit(), ConsoleGump::HideConsole(), hidmanager, inBetweenFrame, World::initMaps(), lerpFactor, HIDManager::loadBindings(), Game::loadFiles(), loadGame(), MM_INFO, MM_MINOR_WARN, GameInfo::name, newGame(), Pentagram::AudioMixer::openMidiOutput(), pout, Console::Printf(), ConfigFileManager::readConfigFile(), RemorseIntrinsics, Console::SetAutoPaint(), SettingManager::setDefault(), CoreApp::settingman, GameData::setupFontOverrides(), ttfoverrides, U8Intrinsics, ucmachine, and world.

Referenced by run(), and startup().

void GUIApp::startupPentagramMenu (  ) 

Definition at line 555 of file GUIApp.cpp.

References con, conAutoPaint(), consoleGump, desktopGump, CoreApp::gameinfo, Gump::GetDims(), CoreApp::getGameInfo(), GraphicSysInit(), Pentagram::Rect::h, ConsoleGump::HideConsole(), Gump::InitGump(), pout, Console::SetAutoPaint(), CoreApp::setupGame(), and Pentagram::Rect::w.

Referenced by run(), and startup().

void GUIApp::stopDragging ( int  mx,
int  my 
) [private]

Definition at line 1770 of file GUIApp.cpp.

References desktopGump, DRAG_INVALID, DRAG_NOT, DRAG_OK, dragging, dragging_item_lastgump, dragging_item_startgump, dragging_objid, Gump::DraggingItemLeftGump(), Gump::DropItem(), Gump::FindGump(), getGump(), getItem(), Gump::GetParent(), kernel, Item::movedByPlayer(), popMouseCursor(), Gump::ScreenSpaceToGump(), Gump::StopDraggingChild(), Gump::StopDraggingItem(), and Kernel::unpause().

Referenced by handleEvent().

void GUIApp::toggleAvatarInStasis (  )  [inline]

Definition at line 106 of file GUIApp.h.

References avatarInStasis.

Referenced by ConCmd_toggleAvatarInStasis().

void GUIApp::togglePaintEditorItems (  )  [inline]

Definition at line 108 of file GUIApp.h.

References paintEditorItems.

Referenced by ConCmd_togglePaintEditorItems().

void GUIApp::toggleShowTouchingItems (  )  [inline]

Definition at line 110 of file GUIApp.h.

References showTouching.

Referenced by ConCmd_toggleShowTouchingItems().

void GUIApp::writeSaveInfo ( ODataSource ods  )  [private]

write savegame info (time, ..., game-specifics)

Definition at line 1817 of file GUIApp.cpp.

References game, getGameTimeInSeconds(), has_cheated, save_count, time, ODataSource::write1(), ODataSource::write2(), ODataSource::write4(), and Game::writeSaveInfo().

Referenced by saveGame().


Member Data Documentation

sint32 GUIApp::animationRate [private]

The animation rate. Affects all processes! (default 100).

Definition at line 249 of file GUIApp.h.

Referenced by run().

Pentagram::AudioMixer* GUIApp::audiomixer [private]

Definition at line 352 of file GUIApp.h.

Referenced by newGame(), resetEngine(), shutdownGame(), startup(), startupGame(), and ~GUIApp().

bool GUIApp::avatarInStasis [private]

If this is set to true, Avatar can't move, nor can Avatar start more usecode

Definition at line 253 of file GUIApp.h.

Referenced by isAvatarInStasis(), load(), save(), setAvatarInStasis(), and toggleAvatarInStasis().

AvatarMoverProcess* GUIApp::avatarMoverProcess [private]

Definition at line 231 of file GUIApp.h.

Referenced by getAvatarMoverProcess(), load(), newGame(), and save().

Pentagram::istring GUIApp::change_gamename [private]

Definition at line 212 of file GUIApp.h.

Referenced by changeGame(), and run().

ConsoleGump* GUIApp::consoleGump [private]

Definition at line 226 of file GUIApp.h.

Referenced by getConsoleGump(), GraphicSysInit(), resetEngine(), setupCoreGumps(), shutdownGame(), startupGame(), and startupPentagramMenu().

std::stack<MouseCursor> GUIApp::cursors [private]

Definition at line 267 of file GUIApp.h.

Referenced by getMouseFrame(), popMouseCursor(), pushMouseCursor(), resetEngine(), setMouseCursor(), and shutdownGame().

Texture* GUIApp::defMouse [private]

Default Pentagram mouse for when there is no GameData.

Definition at line 263 of file GUIApp.h.

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

Gump* GUIApp::desktopGump [private]

Definition at line 225 of file GUIApp.h.

Referenced by addGump(), getDesktopGump(), GraphicSysInit(), handleEvent(), moveDragging(), paint(), resetEngine(), run(), saveGame(), setMouseCoords(), setupCoreGumps(), shutdownGame(), startDragging(), startupPentagramMenu(), and stopDragging().

enum GUIApp::DraggingState GUIApp::dragging [private]

Referenced by handleEvent(), moveDragging(), setMouseCoords(), startDragging(), and stopDragging().

uint16 GUIApp::dragging_item_lastgump [private]

Definition at line 294 of file GUIApp.h.

Referenced by moveDragging(), startDragging(), and stopDragging().

uint16 GUIApp::dragging_item_startgump [private]

Definition at line 293 of file GUIApp.h.

Referenced by startDragging(), and stopDragging().

ObjId GUIApp::dragging_objid [private]

Definition at line 292 of file GUIApp.h.

Referenced by moveDragging(), startDragging(), and stopDragging().

int GUIApp::dragging_offsetX [private]

Definition at line 296 of file GUIApp.h.

Referenced by getDraggingOffset(), and setDraggingOffset().

int GUIApp::dragging_offsetY [private]

Definition at line 296 of file GUIApp.h.

Referenced by getDraggingOffset(), and setDraggingOffset().

bool GUIApp::drawRenderStats [private]

Definition at line 338 of file GUIApp.h.

Referenced by ConCmd_drawRenderStats(), and paint().

uint32 GUIApp::flashingcursor [private]

Definition at line 268 of file GUIApp.h.

Referenced by flashCrossCursor(), and getMouseFrame().

FontManager* GUIApp::fontmanager [private]

Definition at line 223 of file GUIApp.h.

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

bool GUIApp::frameLimit [private]

Set to true to enable frame limiting (default true).

Definition at line 247 of file GUIApp.h.

Referenced by run().

bool GUIApp::frameSkip [private]

Set to true to enable frame skipping (default false).

Definition at line 246 of file GUIApp.h.

Referenced by run().

bool GUIApp::fullscreen [private]

Definition at line 219 of file GUIApp.h.

Referenced by changeVideoMode(), ConCmd_setVideoMode(), and GraphicSysInit().

Game* GUIApp::game [private]

Definition at line 211 of file GUIApp.h.

Referenced by ConCmd_listGames(), newGame(), shutdownGame(), startupGame(), and writeSaveInfo().

GameData* GUIApp::gamedata [private]

Definition at line 221 of file GUIApp.h.

Referenced by CreateHWCursors(), myWindowProc(), paint(), shutdownGame(), startupGame(), and ~GUIApp().

GameMapGump* GUIApp::gameMapGump [private]

Definition at line 227 of file GUIApp.h.

Referenced by getGameMapGump(), handleEvent(), resetEngine(), setupCoreGumps(), and shutdownGame().

bool GUIApp::has_cheated [private]

Definition at line 314 of file GUIApp.h.

Referenced by hasCheated(), load(), makeCheater(), resetEngine(), save(), shutdownGame(), and writeSaveInfo().

HIDManager* GUIApp::hidmanager [private]

Definition at line 216 of file GUIApp.h.

Referenced by handleEvent(), run(), startup(), startupGame(), and ~GUIApp().

HWMouseCursor* GUIApp::hwcursors [private]

Definition at line 271 of file GUIApp.h.

Referenced by CreateHWCursors(), myWindowProc(), and paint().

bool GUIApp::inBetweenFrame [private]

Set true if we are doing an inbetween frame.

Definition at line 244 of file GUIApp.h.

Referenced by run(), and startupGame().

bool GUIApp::interpolate [private]

Set to true to enable interpolation (default true).

Definition at line 248 of file GUIApp.h.

Referenced by run().

unsigned int GUIApp::inversion [private]

Definition at line 297 of file GUIApp.h.

Referenced by getInversion(), isInverted(), load(), resetEngine(), save(), setInversion(), and shutdownGame().

InverterGump* GUIApp::inverterGump [private]

Definition at line 229 of file GUIApp.h.

Referenced by addGump(), resetEngine(), setupCoreGumps(), and shutdownGame().

Kernel* GUIApp::kernel [private]

Definition at line 214 of file GUIApp.h.

Referenced by loadGame(), newGame(), resetEngine(), run(), saveGame(), shutdownGame(), startDragging(), startup(), stopDragging(), and ~GUIApp().

sint32 GUIApp::lerpFactor [private]

Interpolation factor for this frame (0-256).

Definition at line 243 of file GUIApp.h.

Referenced by paint(), run(), and startupGame().

MButton GUIApp::mouseButton[MOUSE_LAST] [private]

Definition at line 282 of file GUIApp.h.

Referenced by GUIApp(), handleDelayedEvents(), handleEvent(), isMouseDown(), setMouseCoords(), and startDragging().

uint16 GUIApp::mouseOverGump [private]

Definition at line 284 of file GUIApp.h.

Referenced by load(), saveGame(), and setMouseCoords().

int GUIApp::mouseX [private]

Definition at line 261 of file GUIApp.h.

Referenced by getMouseCoords(), getMouseFrame(), paint(), setMouseCoords(), and startup().

int GUIApp::mouseY [private]

Definition at line 261 of file GUIApp.h.

Referenced by getMouseCoords(), getMouseFrame(), paint(), setMouseCoords(), and startup().

ObjectManager* GUIApp::objectmanager [private]

Definition at line 215 of file GUIApp.h.

Referenced by handleEvent(), loadGame(), resetEngine(), saveGame(), setupCoreGumps(), shutdownGame(), startup(), and ~GUIApp().

bool GUIApp::paintEditorItems [private]

If true, paint items with the SI_EDITOR flag.

Definition at line 255 of file GUIApp.h.

Referenced by isPaintEditorItems(), and togglePaintEditorItems().

bool GUIApp::painting [private]

Set true when painting.

Definition at line 257 of file GUIApp.h.

Referenced by isPainting(), and paint().

PaletteManager* GUIApp::palettemanager [private]

Definition at line 220 of file GUIApp.h.

Referenced by GraphicSysInit(), resetEngine(), shutdownGame(), and ~GUIApp().

bool GUIApp::runSDLInit [private]

Definition at line 240 of file GUIApp.h.

uint32 GUIApp::save_count [private]

Definition at line 187 of file GUIApp.h.

Referenced by load(), resetEngine(), save(), saveGame(), shutdownGame(), and writeSaveInfo().

ScalerGump* GUIApp::scalerGump [private]

Definition at line 228 of file GUIApp.h.

Referenced by addGump(), resetEngine(), setupCoreGumps(), and shutdownGame().

RenderSurface* GUIApp::screen [private]

Definition at line 218 of file GUIApp.h.

Referenced by getMouseDirection(), getMouseLength(), getScreen(), GraphicSysInit(), paint(), setMouseCoords(), setupCoreGumps(), shutdownGame(), and ~GUIApp().

bool GUIApp::showTouching [private]

If true, highlight items touching Avatar.

Definition at line 259 of file GUIApp.h.

Referenced by isShowTouchingItems(), and toggleShowTouchingItems().

std::list<ObjId> GUIApp::textmodes [private]

Gumps that want text mode.

Definition at line 322 of file GUIApp.h.

Referenced by enterTextMode(), handleEvent(), leaveTextMode(), resetEngine(), and shutdownGame().

sint32 GUIApp::timeOffset [private]

Definition at line 313 of file GUIApp.h.

Referenced by getGameTimeInSeconds(), load(), resetEngine(), save(), and shutdownGame().

bool GUIApp::ttfoverrides [private]

Definition at line 349 of file GUIApp.h.

Referenced by startupGame().

UCMachine* GUIApp::ucmachine [private]

Definition at line 217 of file GUIApp.h.

Referenced by loadGame(), resetEngine(), saveGame(), shutdownGame(), startupGame(), and ~GUIApp().

World* GUIApp::world [private]

Definition at line 222 of file GUIApp.h.

Referenced by loadGame(), resetEngine(), saveGame(), shutdownGame(), startupGame(), and ~GUIApp().


The documentation for this class was generated from the following files:
Generated on Fri Jul 27 22:29:19 2007 for pentagram by  doxygen 1.4.7