diff options
author | Piotr Dziwinski <piotrdz@gmail.com> | 2012-09-19 22:53:06 +0200 |
---|---|---|
committer | Piotr Dziwinski <piotrdz@gmail.com> | 2012-09-19 22:53:06 +0200 |
commit | 7479f486b671acb2a6aea2c84a56b383aaba00ca (patch) | |
tree | 4043545a14234dfaa2d7d08d59c7ee9ee97f0de9 /src/ui/target.h | |
parent | 901f10b2bac18a2063cd21798f22b3917e8519b5 (diff) | |
parent | 57d33d79ea570773d84ad81d4a61f50e079979ef (diff) | |
download | colobot-7479f486b671acb2a6aea2c84a56b383aaba00ca.tar.gz colobot-7479f486b671acb2a6aea2c84a56b383aaba00ca.tar.bz2 colobot-7479f486b671acb2a6aea2c84a56b383aaba00ca.zip |
Forgotten fix in dev-graphics
Diffstat (limited to 'src/ui/target.h')
-rw-r--r-- | src/ui/target.h | 33 |
1 files changed, 20 insertions, 13 deletions
diff --git a/src/ui/target.h b/src/ui/target.h index ae0c7af..05a3651 100644 --- a/src/ui/target.h +++ b/src/ui/target.h @@ -18,31 +18,38 @@ #pragma once +#include <string> #include "ui/control.h" +#include "common/misc.h" +#include "common/iman.h" +#include "common/restext.h" +#include "common/event.h" -class CD3DEngine; -class CObject; +#include "graphics/engine/engine.h" +#include "object/robotmain.h" +#include "object/object.h" +namespace Ui { + class CTarget : public CControl { -public: - CTarget(CInstanceManager* iMan); - ~CTarget(); - - bool Create(Math::Point pos, Math::Point dim, int icon, EventMsg eventMsg); + public: + CTarget(); + ~CTarget(); - bool EventProcess(const Event &event); - void Draw(); - bool GetTooltip(Math::Point pos, char* name); + bool Create(Math::Point pos, Math::Point dim, int icon, EventType eventMsg); -protected: - CObject* DetectFriendObject(Math::Point pos); + bool EventProcess(const Event &event); + void Draw(); + bool GetTooltip(Math::Point pos, std::string &name); -protected: + protected: + CObject* DetectFriendObject(Math::Point pos); }; +} |