Author: machiel.sleeuwaert
(2008/11/11 16:35) Over 3 years ago
9
// Include Files
10
//-----------------------------------------------------------------
11
#include "Week1Oplossing.h"
12
#include "functionpointer.h"
13
14
// Week1Oplossing methods
15
...
17
Week1Oplossing::Week1Oplossing()
18
{
19
// nothing to create
20
onetime =0;
mFptest = new functionpointertest(this);
21
}
22
23
Week1Oplossing::~Week1Oplossing()
24
29
30
AbstractGame::GameInitialize(hInstance);
31
32
GAME_ENGINE->SetTitle(_T("Week1Oplossing"));
33
34
35
GAME_ENGINE->MessageBox(_T("yow"));
36
37
void Week1Oplossing::GameStart()
38
54
//lijst4+=lijst1;
57
55
58
56
//lijst4 = lijst4;
59
60
mFptest->setfunction(&Week1Oplossing::MyPwnFunction);
61
62
void Week1Oplossing::GamePaint(RECT rect)
63
64
Vector3 Vector1PTR;
65
/*Vector3 Vector1PTR;
Vector3 Vector2PTR;
66
Vector3 Vector3PTR;
67
Vector3 Vector4PTR;
68
73
tstring temp;
77
74
temp = _T("lol ");
78
75
79
76
GAME_ENGINE->DrawString(temp+Vector1PTR,100,10+(20*0));
80
GAME_ENGINE->DrawString(temp+Vector1PTR,100,10+(20*0));*/
81
// GAME_ENGINE->DrawString(Vector2PTR.ToString(),100,10+(20*1));
82
// GAME_ENGINE->DrawString(Vector3PTR.ToString(),100,10+(20*2));
83
121
// GAME_ENGINE->DrawString(test.str(),100,10+(20*++i));
125
122
// test.str(_T(""));
126
123
127
128
129
130
131
void Week1Oplossing::MyPwnFunction(int i)
132
133
GAME_ENGINE->MessageBox(i);
124
134
#include "KeyValueLijst.h"
#include "KeyValuePaar.h"
#include "vector3.h"
class functionpointertest;
using namespace Machiel;
25
// Week1Oplossing Class
26
42
void GameInitialize(HINSTANCE hInstance);
45
43
void GameStart();
46
44
void GamePaint(RECT rect);
47
48
void MyPwnFunction(int i);
49
private:
50
// -------------------------
51
// Datamembers
52
53
int onetime;
// int onetime;
IntLijst lijst1;
// IntLijst lijst1;
IntLijst lijst2;
// IntLijst lijst2;
IntLijst lijst3;
// IntLijst lijst3;
IntLijst lijst4;
// IntLijst lijst4;
functionpointertest *mFptest;
// Disabling default copy constructor and default assignment operator.
// If you get a linker error from one of these functions, your class is internally trying to use them. This is
171
UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}"
172
>
173
<File
174
RelativePath=".\functionpointer.cpp"
175
176
</File>
177
178
RelativePath=".\functionpointer.h"
179
180
181
RelativePath=".\IntLijst.cpp"
182
183
184
#include "functionpointer.h"{{onetime =0;mFptest = new functionpointertest(this);{{GAME_ENGINE->SetTitle(_T("Week1Oplossing"));GAME_ENGINE->SetTitle(_T("Week1Oplossing"));GAME_ENGINE->MessageBox(_T("yow"));{{/*Vector3 Vector1PTR;temp = _T("lol ");temp = _T("lol ");GAME_ENGINE->DrawString(temp+Vector1PTR,100,10+(20*0));*/// test.str(_T(""));// test.str(_T(""));{// int onetime;// IntLijst lijst1;// IntLijst lijst2;// IntLijst lijst3;// IntLijst lijst4;functionpointertest *mFptest;UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}"UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}"