mirror of
https://github.com/devZoGok/PlanetFleet.git
synced 2026-08-26 19:43:29 +00:00
removed many Irrlicht references
This commit is contained in:
+10
-16
@@ -1,16 +1,14 @@
|
||||
#include <algorithm>
|
||||
#include <irrlicht.h>
|
||||
#include <root.h>
|
||||
|
||||
#include "gameManager.h"
|
||||
#include "guiAppState.h"
|
||||
#include "stateManager.h"
|
||||
#include "eventListener.h"
|
||||
#include "abstractBitmapText.h"
|
||||
#include "abstractImage.h"
|
||||
|
||||
using namespace std;
|
||||
using namespace game::gui;
|
||||
using namespace irr;
|
||||
using namespace vb01;
|
||||
|
||||
namespace game{
|
||||
namespace core{
|
||||
@@ -24,22 +22,15 @@ namespace game{
|
||||
}
|
||||
|
||||
GameManager::GameManager() {
|
||||
device = createDevice(video::EDT_OPENGL, irr::core::dimension2d<u32>(800,600), 32, false, true, true, nullptr);
|
||||
device->setResizable(true);
|
||||
irr::video::IVideoDriver *driver = device->getVideoDriver();
|
||||
irr::scene::ISceneManager *smgr = device->getSceneManager();
|
||||
irr::gui::IGUIEnvironment *guiEnv = device->getGUIEnvironment();
|
||||
|
||||
device->setWindowCaption(L"(((A)))");
|
||||
stateManager = new StateManager();
|
||||
listener = new EventListener(this);
|
||||
device->setEventReceiver(listener);
|
||||
width = device->getVideoDriver()->getScreenSize().Width;
|
||||
height = device->getVideoDriver()->getScreenSize().Height;
|
||||
Root *root = Root::getSingleton();
|
||||
root->start(800, 600, "Battleship", "../vb01");
|
||||
}
|
||||
|
||||
GameManager::~GameManager() {}
|
||||
|
||||
/*
|
||||
stateManager = new StateManager();
|
||||
listener = new EventListener(this);
|
||||
void GameManager::detachBitmapText(AbstractBitmapText *bitmapText) {
|
||||
for (int i = 0; i < bitmapTexts.size(); i++)
|
||||
if (bitmapText == bitmapTexts[i]) {
|
||||
@@ -69,16 +60,19 @@ namespace game{
|
||||
images.pop_back();
|
||||
}
|
||||
}
|
||||
*/
|
||||
|
||||
void GameManager::update() {
|
||||
listener->update();
|
||||
stateManager->update();
|
||||
|
||||
/*
|
||||
for (BitmapText *b : bitmapTexts)
|
||||
b->update();
|
||||
|
||||
for (Image *i : images)
|
||||
i->update();
|
||||
*/
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user