It is a central place to put references to other objects, like the party, minimap, etc.
|
Public Member Functions |
|
void | setBlendFunc () |
|
| Scourge (UserConfiguration *config) |
| void | receive (Widget *widget) |
| | The widget received a dragged item.
|
| bool | startDrag (Widget *widget, int x=0, int y=0) |
| | The widget initiated a drag return true if there's something to drag at x,y.
|
|
int | getCurrentDepth () |
|
bool | isHeadless () |
|
Session * | getSession () |
|
int | getScreenWidth () |
|
int | getScreenHeight () |
| Board * | getBoard () |
| void | setMove (Uint16 n) |
| | Set which direction to move in.
|
| void | removeMove (Uint16 n) |
| | Stop moving in the given direction(s).
|
| void | playRound () |
| | This method is called by the main loop to play a round.
|
|
Battle * | getBattle (Creature *creature) |
| Party * | getParty () |
| Map * | getMap () |
| MiniMap * | getMiniMap () |
|
void | colorMiniMapPoint (int x, int y, Shape *shape, Location *pos=NULL) |
|
void | eraseMiniMapPoint (int x, int y) |
| void | setMovingItem (Item *item, int x, int y, int z) |
| | When dropping an item from the inventory this method sets up the parameters so the cursor can drag it around the screen and eventually deposit it at a location or in a container.
|
| Item * | getMovingItem () |
| MainMenu * | getMainMenu () |
| OptionsMenu * | getOptionsMenu () |
| MultiplayerDialog * | getMultiplayerDialog () |
| Inventory * | getInventory () |
| void | drawView () |
| | The main app loop calls this method to repaint the screen.
|
| void | drawAfter () |
| | The main app loop calls this after the drawView and the UI (windows) have been drawn.
|
|
void | drawDraggedItem () |
|
void | drawBorder () |
|
void | drawOutsideMap () |
|
void | showCreatureInfo (Creature *creature, bool player, bool selected, bool groupMode) |
| bool | handleEvent (SDL_Event *event) |
| | Respond to keyboard and mouse events in this method.
|
| bool | handleEvent (Widget *widget, SDL_Event *event) |
| | Respond to UI (windowing) events in this method.
|
| void | addGameSpeed (int speedFactor) |
| | Increase the game speed.
|
| void | startItemDragFromGui (Item *item) |
| | Start to drag an item from a container gui.
|
| bool | startItemDrag (int x, int y, int z) |
| | Start to drag an item from the map at a specific location.
|
| void | endItemDrag () |
| | Stop dragging an item.
|
| bool | useItem (int x, int y, int z) |
| | Use the item at the given location.
|
| void | startMission () |
| | Set up a new mission or story of a mission and call sdlHandler->mainLoop() to play it.
|
| void | endMission () |
| | Set up some variables so the mainLoop can quit and control can be transferred back to startMission.
|
| ShapePalette * | getShapePalette () |
| SDLHandler * | getSDLHandler () |
| void | openContainerGui (Item *container) |
| | Open the container UI for the given container item.
|
| void | closeContainerGui (ContainerGui *gui) |
| | Close the specified container gui.
|
| void | closeAllContainerGuis () |
| | Close all open container guis.
|
| void | creatureDeath (Creature *creature) |
| | A creature has died, mark it dead (via state_mod), and create a "skull and bones" container for it containing the items from the dead creature's inventory.
|
| void | showMessageDialog (char *message) |
| | A helper method to show a message in a modal dialog.
|
|
void | togglePlayerOnly () |
|
void | toggleInventoryWindow () |
|
void | toggleOptionsWindow () |
| void | showExitConfirmationDialog () |
| | Show the modal yes/no dialog asking the user if the story should be exited.
|
| Window * | createWoodWindow (int x, int y, int w, int h, char *title) |
| | A helper method to create a window with the "wood" look.
|
| Window * | createWindow (int x, int y, int w, int h, char *title) |
| | A helper method to create a window with the default look.
|
| void | missionCompleted () |
| | Called when the mission was completed (monster killed, item bagged, etc.).
|
| void | setTargetSelectionFor (Creature *c) |
| | Enable "target" mode for a given creature.
|
| Creature * | getTargetSelectionFor () |
| void | setUILayout () |
| | Refresh (redraw) the current UI layout.
|
| void | setUILayout (int mode) |
| | Set the UI layout to one of the values specified in constants.
|
| int | getLayoutMode () |
|
void | initStart (int statusCount, char *message) |
|
void | initUpdate (char *message) |
|
void | initEnd () |
|
void | initVideo (ShapePalette *shapePal) |
|
void | initUI () |
|
void | start () |
|
double | getFps () |
|
void | playSound (const char *sound) |
|
void | loadMonsterSounds (char *type, map< int, vector< string > * > *soundMap) |
|
void | unloadMonsterSounds (char *type, map< int, vector< string > * > *soundMap) |
|
void | setDebugStr (char *s) |
|
void | fightProjectileHitTurn (Projectile *proj, Creature *creature) |
|
void | fightProjectileHitTurn (Projectile *proj, int x, int y) |
|
void | drawWidget (Widget *w) |
|
void | resetPartyUI () |
|
void | refreshInventoryUI (int playerIndex) |
|
void | refreshInventoryUI () |
|
void | toggleRoundUI (bool startRound) |
|
void | setFormationUI (int formation, bool playerOnly) |
|
void | togglePlayerOnlyUI (bool playerOnly) |
|
void | setPlayerUI (int index) |
|
void | setPlayer (int n) |
|
void | createBoardUI () |
|
void | updateBoardUI (int count, const char **missionText, Color *missionColor) |
|
int | handleBoardEvent (Widget *widget, SDL_Event *event) |
|
void | setMissionDescriptionUI (char *s) |
|
void | moveMonster (Creature *monster) |
|
void | removeBattle (Battle *battle) |
|
bool | inTurnBasedCombat () |
|
bool | inTurnBasedCombatPlayerTurn () |
|
InfoGui * | getInfoGui () |
|
ConversationGui * | getConversationGui () |
|
void | showItemInfoUI (Item *item, int level) |
|
void | resetInfos () |
|
void | createParty (Creature **pc, int *partySize) |
|
bool | handleTargetSelectionOfCreature (Creature *potentialTarget) |
|
bool | handleTargetSelectionOfItem (Item *item, int x=0, int y=0, int z=0) |
|
bool | handleTargetSelectionOfLocation (Uint16 mapx, Uint16 mapy, Uint16 mapz) |
|
void | teleport (bool toHQ=true) |
|
Window * | getPartyWindow () |
Static Public Attributes |
|
static const int | PARTY_GUI_WIDTH = 500 |
|
static const int | PARTY_GUI_HEIGHT = 145 |
|
static const int | PARTY_MIN_GUI_WIDTH = 100 |
|
static const int | INVENTORY_WIDTH = 420 |
|
static const int | INVENTORY_HEIGHT = 460 |
|
static int | blendA = 2 |
|
static int | blendB = 6 |
| static int | blend [] |
Protected Member Functions |
|
void | processGameMouseDown (Uint16 x, Uint16 y, Uint8 button) |
|
void | processGameMouseClick (Uint16 x, Uint16 y, Uint8 button) |
|
void | getMapXYZAtScreenXY (Uint16 x, Uint16 y, Uint16 *mapx, Uint16 *mapy, Uint16 *mapz) |
|
void | getMapXYAtScreenXY (Uint16 x, Uint16 y, Uint16 *mapx, Uint16 *mapy) |
|
void | processGameMouseMove (Uint16 x, Uint16 y) |
|
void | describeLocation (int mapx, int mapy, int mapz) |
|
bool | getItem (Location *pos) |
|
int | dropItem (int x, int y) |
|
bool | useLever (Location *pos) |
|
bool | useDoor (Location *pos) |
|
void | destroyDoor (Sint16 ox, Sint16 oy, Shape *shape) |
|
bool | useBoard (Location *pos) |
|
bool | useTeleporter (Location *pos) |
|
bool | useGate (Location *pos) |
|
void | drawPortrait (Widget *w, Creature *p) |
|
void | resetBattles () |
|
int | initMultiplayer () |
|
void | decodeName (int name, Uint16 *mapx, Uint16 *mapy, Uint16 *mapz) |
|
void | createUI () |
|
void | handleKeyboardMovement () |
|
void | decideMonsterAction (Creature *monster) |
|
void | refreshContainerGui (Item *container) |
|
void | createPartyUI () |
|
bool | handlePartyEvent (Widget *widget, SDL_Event *event) |
|
void | updatePartyUI () |
|
void | moveProjectiles () |
|
bool | fightCurrentBattleTurn () |
|
void | resetNonParticipantAnimation (Battle *battle) |
|
bool | createBattleTurns () |
|
void | resetUIAfterBattle () |
|
void | moveCreatures () |
|
void | checkForDropTarget () |
|
void | checkForInfo () |
|
void | drawInfos () |
|
void | quickSpellAction (int index) |
Protected Attributes |
|
SDLHandler * | sdlHandler |
|
ShapePalette * | shapePal |