summaryrefslogtreecommitdiff
path: root/src/game/GameController.h
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2013-03-22 14:14:17 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2013-03-22 14:14:17 (GMT)
commit9abe51526cac2634af0541c3de69834dd30e9f78 (patch)
tree6ae4deadfe00a83094b9d288d8c11d8ce823577a /src/game/GameController.h
parent2c311b9a36a88fadd96f3d39acb1ab2590835d81 (diff)
downloadpowder-9abe51526cac2634af0541c3de69834dd30e9f78.zip
powder-9abe51526cac2634af0541c3de69834dd30e9f78.tar.gz
Move all GUI source files into gui/
Diffstat (limited to 'src/game/GameController.h')
-rw-r--r--src/game/GameController.h155
1 files changed, 0 insertions, 155 deletions
diff --git a/src/game/GameController.h b/src/game/GameController.h
deleted file mode 100644
index 070d39d..0000000
--- a/src/game/GameController.h
+++ /dev/null
@@ -1,155 +0,0 @@
- #ifndef GAMECONTROLLER_H
-#define GAMECONTROLLER_H
-
-#include <queue>
-#include "GameView.h"
-#include "GameModel.h"
-#include "interface/Point.h"
-#include "simulation/Simulation.h"
-#include "search/SearchController.h"
-#include "render/RenderController.h"
-#include "preview/PreviewController.h"
-#include "login/LoginController.h"
-#include "tags/TagsController.h"
-#include "console/ConsoleController.h"
-#include "localbrowser/LocalBrowserController.h"
-//#include "cat/TPTScriptInterface.h"
-#include "cat/LuaScriptInterface.h"
-#include "options/OptionsController.h"
-#include "client/ClientListener.h"
-#include "RenderPreset.h"
-#include "Menu.h"
-
-using namespace std;
-
-class DebugInfo;
-class Notification;
-class GameModel;
-class GameView;
-class CommandInterface;
-class ConsoleController;
-class GameController: public ClientListener
-{
-private:
- //Simulation * sim;
- bool firstTick;
- int screenshotIndex;
- PreviewController * activePreview;
- GameView * gameView;
- GameModel * gameModel;
- SearchController * search;
- RenderController * renderOptions;
- LoginController * loginWindow;
- ConsoleController * console;
- TagsController * tagsWindow;
- LocalBrowserController * localBrowser;
- OptionsController * options;
- CommandInterface * commandInterface;
- vector<DebugInfo*> debugInfo;
-public:
- bool HasDone;
- class SearchCallback;
- class RenderCallback;
- class SSaveCallback;
- class TagsCallback;
- class StampsCallback;
- class OptionsCallback;
- class SaveOpenCallback;
- friend class SaveOpenCallback;
- GameController();
- ~GameController();
- GameView * GetView();
-
- bool BrushChanged(int brushType, int rx, int ry);
- bool MouseMove(int x, int y, int dx, int dy);
- bool MouseDown(int x, int y, unsigned button);
- bool MouseUp(int x, int y, unsigned button);
- bool MouseWheel(int x, int y, int d);
- bool KeyPress(int key, Uint16 character, bool shift, bool ctrl, bool alt);
- bool KeyRelease(int key, Uint16 character, bool shift, bool ctrl, bool alt);
- void Tick();
- void Exit();
-
- void Install();
-
- void HistoryRestore();
- void HistorySnapshot();
-
- void AdjustGridSize(int direction);
- void InvertAirSim();
- void LoadRenderPreset(int presetNum);
- void SetZoomEnabled(bool zoomEnable);
- void SetZoomPosition(ui::Point position);
- void AdjustBrushSize(int direction, bool logarithmic = false, bool xAxis = false, bool yAxis = false);
- void AdjustZoomSize(int direction, bool logarithmic = false);
- void ToolClick(int toolSelection, ui::Point point);
- void DrawPoints(int toolSelection, queue<ui::Point> & pointQueue);
- void DrawRect(int toolSelection, ui::Point point1, ui::Point point2);
- void DrawLine(int toolSelection, ui::Point point1, ui::Point point2);
- void DrawFill(int toolSelection, ui::Point point);
- void StampRegion(ui::Point point1, ui::Point point2);
- void CopyRegion(ui::Point point1, ui::Point point2);
- void CutRegion(ui::Point point1, ui::Point point2);
- void Update();
- void SetPaused(bool pauseState);
- void SetPaused();
- void SetDecoration(bool decorationState);
- void SetDecoration();
- void ShowGravityGrid();
- void SetHudEnable(bool hudState);
- void SetActiveMenu(Menu * menu);
- std::vector<Menu*> GetMenuList();
- void SetActiveTool(int toolSelection, Tool * tool);
- void ActiveToolChanged(int toolSelection, Tool *tool);
- void SetActiveColourPreset(int preset);
- void SetColour(ui::Colour colour);
- void SetToolStrength(float value);
- void LoadSaveFile(SaveFile * file);
- void LoadSave(SaveInfo * save);
- void OpenSearch();
- void OpenLogin();
- void OpenTags();
- void OpenSavePreview(int saveID, int saveDate);
- void OpenSavePreview();
- void OpenLocalSaveWindow(bool asCurrent);
- void OpenLocalBrowse();
- void OpenOptions();
- void OpenRenderOptions();
- void OpenSaveWindow();
- void SaveAsCurrent();
- void OpenStamps();
- void OpenElementSearch();
- void OpenColourPicker();
- void PlaceSave(ui::Point position);
- void ClearSim();
- void ReloadSim();
- void Vote(int direction);
- void ChangeBrush();
- void ShowConsole();
- void HideConsole();
- void FrameStep();
- void TranslateSave(ui::Point point);
- void TransformSave(matrix2d transform);
- ui::Point PointTranslate(ui::Point point);
- ui::Point NormaliseBlockCoord(ui::Point point);
- std::string ElementResolve(int type);
- std::string WallName(int type);
-
- void ResetAir();
- void ResetSpark();
- void SwitchGravity();
- void SwitchAir();
- void ToggleAHeat();
-
- void LoadClipboard();
- void LoadStamp();
-
- void RemoveNotification(Notification * notification);
-
- virtual void NotifyUpdateAvailable(Client * sender);
- virtual void NotifyAuthUserChanged(Client * sender);
- virtual void NotifyNewNotification(Client * sender, std::pair<std::string, std::string> notification);
- void RunUpdater();
-};
-
-#endif // GAMECONTROLLER_H