1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134 |
//-----------------------------------------------------------------
// Game File
// C++ Source - Week1Oplossing.cpp - version 2008 v3_02
// Copyright Kevin Hoefman - kevin.hoefman@howest.be
// http://www.digitalartsandentertainment.be/
//-----------------------------------------------------------------
//-----------------------------------------------------------------
// Include Files
//-----------------------------------------------------------------
#include "Week1Oplossing.h"
#include "functionpointer.h"
//-----------------------------------------------------------------
// Week1Oplossing methods
//-----------------------------------------------------------------
Week1Oplossing::Week1Oplossing()
{
// nothing to create
mFptest = new functionpointertest(this);
}
Week1Oplossing::~Week1Oplossing()
{
// nothing to destroy
}
void Week1Oplossing::GameInitialize(HINSTANCE hInstance)
{
AbstractGame::GameInitialize(hInstance);
GAME_ENGINE->SetTitle(_T("Week1Oplossing"));
GAME_ENGINE->MessageBox(_T("yow"));
}
void Week1Oplossing::GameStart()
{
//for (int i=0;i<5;++i)
//{
// lijst1.push_back(i);
//}
//for (int i=5;i<10;++i)
//{
// lijst2.push_back(i);
//}
//for (int i=11;i<16;++i)
//{
// lijst3.push_back(i);
//}
//
//lijst4 = lijst3+lijst2;
//lijst4+=lijst1;
//lijst4 = lijst4;
mFptest->setfunction(&Week1Oplossing::MyPwnFunction);
}
void Week1Oplossing::GamePaint(RECT rect)
{
/*Vector3 Vector1PTR;
Vector3 Vector2PTR;
Vector3 Vector3PTR;
Vector3 Vector4PTR;
Vector1PTR = Vector3(1,1,1);
Vector2PTR = Vector3(2,2,2);
Vector3PTR = Vector3(2,2,2);
Vector4PTR = Vector3(Vector2PTR);
GAME_ENGINE->SetColor(RGB(0,0,0));
tstring temp;
temp = _T("lol ");
GAME_ENGINE->DrawString(temp+Vector1PTR,100,10+(20*0));*/
// GAME_ENGINE->DrawString(Vector2PTR.ToString(),100,10+(20*1));
// GAME_ENGINE->DrawString(Vector3PTR.ToString(),100,10+(20*2));
// GAME_ENGINE->DrawString(Vector4PTR.ToString(),100,10+(20*3));
// Vector4PTR = Vector1PTR+Vector2PTR;
// GAME_ENGINE->DrawString(Vector4PTR.ToString(),100,10+(20*4));
// Vector4PTR = Vector1PTR + Vector3PTR;
// GAME_ENGINE->DrawString(Vector4PTR.ToString(),100,10+(20*5));
// bool temp = Vector2PTR == Vector3PTR;
// tstringstream temph;
// temph << temp;
// GAME_ENGINE->DrawString(temph.str(),100,10+(20*6));
//
//
// temph.str(_T(""));
// temp = Vector2PTR == Vector1PTR;
// temph << temp;
// GAME_ENGINE->DrawString(temph.str(),100,10+(20*7));
//
//
//int i=0;
// tstringstream test;
// lijst1>>test;
// GAME_ENGINE->DrawString(test.str(),100,10+(20*++i));
// test.str(_T(""));
// lijst2>>test;
// GAME_ENGINE->DrawString(test.str(),100,10+(20*++i));
// test.str(_T(""));
// lijst3>>test;
// GAME_ENGINE->DrawString(test.str(),100,10+(20*++i));
// test.str(_T(""));
//
//
// lijst4>>test;
//
//
// GAME_ENGINE->DrawString(test.str(),100,10+(20*++i));
// test.str(_T(""));
}
void Week1Oplossing::MyPwnFunction(int i)
{
GAME_ENGINE->MessageBox(i);
} |