root/week1oplossing/Week1Oplossing.cpp

User picture

Author: machiel.sleeuwaert

Revision: 13 («Previous)

(Nov 11 16:35 2008 UTC) Over 3 years ago


  

 
Show/hide line numbers
//-----------------------------------------------------------------
// 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);
}