Colobot
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Pages
src
ui
target.h
1
// * This file is part of the COLOBOT source code
2
// * Copyright (C) 2001-2008, Daniel ROUX & EPSITEC SA, www.epsitec.ch
3
// *
4
// * This program is free software: you can redistribute it and/or modify
5
// * it under the terms of the GNU General Public License as published by
6
// * the Free Software Foundation, either version 3 of the License, or
7
// * (at your option) any later version.
8
// *
9
// * This program is distributed in the hope that it will be useful,
10
// * but WITHOUT ANY WARRANTY; without even the implied warranty of
11
// * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
// * GNU General Public License for more details.
13
// *
14
// * You should have received a copy of the GNU General Public License
15
// * along with this program. If not, see http://www.gnu.org/licenses/.
16
17
// target.h
18
19
#pragma once
20
21
#include "
common/event.h
"
22
#include "common/misc.h"
23
#include "
common/restext.h
"
24
25
#include "
graphics/engine/engine.h
"
26
27
#include "
object/robotmain.h
"
28
#include "
object/object.h
"
29
30
#include "ui/control.h"
31
32
#include <string>
33
34
35
namespace
Ui {
36
37
class
CTarget
:
public
CControl
38
{
39
public
:
40
CTarget
();
41
~
CTarget
();
42
43
bool
Create(
Math::Point
pos,
Math::Point
dim,
int
icon,
EventType
eventMsg);
44
45
bool
EventProcess(
const
Event
&event);
46
void
Draw();
47
bool
GetTooltip(
Math::Point
pos, std::string &name);
48
49
protected
:
50
CObject
* DetectFriendObject(
Math::Point
pos);
51
};
52
53
54
}
55
engine.h
Main graphics engine - CEngine class.
robotmain.h
CRobotMain - main class of Colobot game engine.
Ui::CTarget
Definition:
target.h:37
restext.h
Translation and string resource utilities.
Math::Point
2D point
Definition:
point.h:46
object.h
CObject - base class for all game objects.
event.h
Event types, structs and event queue.
EventType
EventType
Type of event message.
Definition:
event.h:35
Event
Event sent by system, interface or game.
Definition:
event.h:687
CObject
Definition:
object.h:372
Ui::CControl
Definition:
control.h:64
Generated on Thu Jan 2 2014 13:30:51 for Colobot by
1.8.5