summaryrefslogtreecommitdiffstats
path: root/src/ui/displaytext.h
diff options
context:
space:
mode:
authorMichał Konopacki <konopacki.m@gmail.com>2012-08-18 22:56:42 +0200
committerMichał Konopacki <konopacki.m@gmail.com>2012-08-18 22:56:42 +0200
commit574c07e388dfd902b6565bc4a5ac9b915c73074e (patch)
tree65846a6bd77542a5e7271ff8cc4bfa77bda477a5 /src/ui/displaytext.h
parent10b2c562fb7635f9850f1441f08ba8b1a71e31e1 (diff)
downloadcolobot-574c07e388dfd902b6565bc4a5ac9b915c73074e.tar.gz
colobot-574c07e388dfd902b6565bc4a5ac9b915c73074e.tar.bz2
colobot-574c07e388dfd902b6565bc4a5ac9b915c73074e.zip
Further improvements in UI porting
Diffstat (limited to 'src/ui/displaytext.h')
-rw-r--r--src/ui/displaytext.h34
1 files changed, 20 insertions, 14 deletions
diff --git a/src/ui/displaytext.h b/src/ui/displaytext.h
index c2eea98..d560433 100644
--- a/src/ui/displaytext.h
+++ b/src/ui/displaytext.h
@@ -1,5 +1,6 @@
// * This file is part of the COLOBOT source code
// * Copyright (C) 2001-2008, Daniel ROUX & EPSITEC SA, www.epsitec.ch
+// * Copyright (C) 2012, Polish Portal of Colobot (PPC)
// *
// * This program is free software: you can redistribute it and/or modify
// * it under the terms of the GNU General Public License as published by
@@ -21,15 +22,18 @@
#include "common/event.h"
#include "common/misc.h"
-#include "old/d3dengine.h"
+#include "sound/sound.h"
+//#include "old/d3dengine.h"
class CInstanceManager;
-class CD3DEngine;
-class CInterface;
+//class CD3DEngine
class CObject;
class CSound;
+namespace Ui {;
+
+class CInterface;
enum TextType
{
@@ -45,7 +49,8 @@ const int MAXDTLINE = 4;
class CDisplayText
{
public:
- CDisplayText(CInstanceManager* iMan);
+// CDisplayText(CInstanceManager* iMan);
+ CDisplayText();
~CDisplayText();
void DeleteObject();
@@ -62,25 +67,25 @@ public:
void SetDelay(float factor);
void SetEnable(bool bEnable);
- Math::Vector RetVisitGoal(EventMsg event);
- float RetVisitDist(EventMsg event);
- float RetVisitHeight(EventMsg event);
+ Math::Vector GetVisitGoal(EventType event);
+ float GetVisitDist(EventType event);
+ float GetVisitHeight(EventType event);
- float RetIdealDist(CObject* pObj);
- float RetIdealHeight(CObject* pObj);
+ float GetIdealDist(CObject* pObj);
+ float GetIdealHeight(CObject* pObj);
void ClearVisit();
- void SetVisit(EventMsg event);
- bool IsVisit(EventMsg event);
+ void SetVisit(EventType event);
+ bool IsVisit(EventType event);
protected:
CObject* SearchToto();
protected:
CInstanceManager* m_iMan;
- CD3DEngine* m_engine;
- CInterface* m_interface;
- CSound* m_sound;
+ Gfx::CEngine* m_engine;
+ Ui::CInterface* m_interface;
+ CSoundInterface* m_sound;
bool m_bExist[MAXDTLINE];
float m_time[MAXDTLINE];
@@ -94,3 +99,4 @@ protected:
};
+}