removed many Irrlicht references

This commit is contained in:
devZoGok
2021-10-31 15:13:47 +02:00
parent 0e236a44d6
commit b18b2fe9a8
70 changed files with 1822 additions and 1529 deletions
+10 -16
View File
@@ -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();
*/
}
}
}