root/week1oplossing/Week1Oplossing.cpp
| 4 | 10 | ||
|---|---|---|---|
9 | // Include Files | 9 | // Include Files |
10 | //----------------------------------------------------------------- | 10 | //----------------------------------------------------------------- |
11 | #include "Week1Oplossing.h" | 11 | #include "Week1Oplossing.h" |
12 | 12 | #include "functionpointer.h" | |
13 | //----------------------------------------------------------------- | 13 | //----------------------------------------------------------------- |
14 | // Week1Oplossing methods | 14 | // Week1Oplossing methods |
15 | //----------------------------------------------------------------- | 15 | //----------------------------------------------------------------- |
... | ... | ||
17 | Week1Oplossing::Week1Oplossing() | 17 | Week1Oplossing::Week1Oplossing() |
18 | { | 18 | { |
19 | // nothing to create | 19 | // nothing to create |
20 | onetime =0; | 20 | mFptest = new functionpointertest(this); |
21 | | ||
21 | } | 22 | } |
22 | 23 | ||
23 | Week1Oplossing::~Week1Oplossing() | 24 | Week1Oplossing::~Week1Oplossing() |
... | ... | ||
29 | { | 30 | { |
30 | AbstractGame::GameInitialize(hInstance); | 31 | AbstractGame::GameInitialize(hInstance); |
31 | 32 | ||
32 | GAME_ENGINE->SetTitle(_T("Week1Oplossing")); | 33 | GAME_ENGINE->SetTitle(_T("Week1Oplossing")); |
34 | |||
35 | GAME_ENGINE->MessageBox(_T("yow")); | ||
33 | } | 36 | } |
34 | 37 | ||
35 | void Week1Oplossing::GameStart() | 38 | void Week1Oplossing::GameStart() |
... | ... | ||
54 | //lijst4+=lijst1; | 57 | //lijst4+=lijst1; |
55 | 58 | ||
56 | //lijst4 = lijst4; | 59 | //lijst4 = lijst4; |
60 | mFptest->setfunction(&Week1Oplossing::MyPwnFunction); | ||
57 | } | 61 | } |
58 | 62 | ||
59 | void Week1Oplossing::GamePaint(RECT rect) | 63 | void Week1Oplossing::GamePaint(RECT rect) |
60 | { | 64 | { |
61 | Vector3 Vector1PTR; | 65 | /*Vector3 Vector1PTR; |
62 | Vector3 Vector2PTR; | 66 | Vector3 Vector2PTR; |
63 | Vector3 Vector3PTR; | 67 | Vector3 Vector3PTR; |
64 | Vector3 Vector4PTR; | 68 | Vector3 Vector4PTR; |
... | ... | ||
73 | tstring temp; | 77 | tstring temp; |
74 | temp = _T("lol "); | 78 | temp = _T("lol "); |
75 | 79 | ||
76 | GAME_ENGINE->DrawString(temp+Vector1PTR,100,10+(20*0)); | 80 | GAME_ENGINE->DrawString(temp+Vector1PTR,100,10+(20*0));*/ |
77 | 81 | ||
78 | // GAME_ENGINE->DrawString(Vector2PTR.ToString(),100,10+(20*1)); | 82 | // GAME_ENGINE->DrawString(Vector2PTR.ToString(),100,10+(20*1)); |
79 | // GAME_ENGINE->DrawString(Vector3PTR.ToString(),100,10+(20*2)); | 83 | // GAME_ENGINE->DrawString(Vector3PTR.ToString(),100,10+(20*2)); |
... | ... | ||
121 | // GAME_ENGINE->DrawString(test.str(),100,10+(20*++i)); | 125 | // GAME_ENGINE->DrawString(test.str(),100,10+(20*++i)); |
122 | // test.str(_T("")); | 126 | // test.str(_T("")); |
123 | 127 | ||
128 | } | ||
129 | |||
130 | |||
131 | void Week1Oplossing::MyPwnFunction(int i) | ||
132 | { | ||
133 | GAME_ENGINE->MessageBox(i); | ||
124 | } | 134 | } |
Download diff