OOStuBS - Technische Informatik II (TI-II)
2.4
Hauptseite
Zusätzliche Informationen
Klassen
Dateien
Auflistung der Dateien
Datei-Elemente
include
user
task4.h
gehe zur Dokumentation dieser Datei
1
#ifndef __task4_header__
2
#define __task4_header__
3
4
#include "
user/appl.h
"
5
11
class
Task4
:
public
Application
{
12
protected
:
13
14
enum
Constants
{
15
rotCursorX
=79,
16
rotCursorY
=0,
17
counter1X
=10,
18
counter1Y
=10,
19
counter2X
=10,
20
counter2Y
=15,
21
};
22
bool
coop
;
23
29
class
RotCursor
:
public
Application
30
{
31
private
:
33
unsigned
char
i
;
34
unsigned
short
x
,
y
;
35
bool
coop
;
36
37
void
enableCoop
(){
coop
=
true
;}
38
public
:
43
RotCursor
(
unsigned
short
x
,
unsigned
short
y
);
44
49
virtual
void
action
();
50
friend
class
Task4
;
51
};
52
57
class
Counter
:
public
Application
58
{
59
private
:
61
unsigned
int
i
;
62
unsigned
short
x
,
y
;
63
bool
coop
;
64
65
void
enableCoop
(){
coop
=
true
;}
66
public
:
71
Counter
(
unsigned
short
x
,
unsigned
short
y
);
72
77
virtual
void
action
();
78
79
friend
class
Task4
;
80
};
81
83
RotCursor
rotCursor
;
85
Counter
counter1
;
87
Counter
counter2
;
88
89
public
:
94
Task4
();
95
100
~Task4
();
101
106
virtual
void
action
();
107
109
void
enableCoop
();
110
};
111
112
#endif
Erzeugt am Mon Jun 30 2014 07:13:28 für OOStuBS - Technische Informatik II (TI-II) von
1.8.1.2