#pragma once #include "PongView.h" #include "Racket.h" #include "Ball.h" #include //_beginthread() #include //Für kbhit() und _getch() class PongView; class Racket; class Ball; #define LEER 0x20 #ifndef __GAMEAREA__ #define __GAMEAREA__ typedef struct { short xMin; short xMax; short yMin; short yMax; } GAMEAREA; #endif class PongController { private: static CRITICAL_SECTION* Section; //Erzeugen der Sicht static PongView* pv; Ball* b; Racket* r1; Racket* r2; //Das ist die Thread-Funktion static void animateBall( void* p ); public: PongController(GAMEAREA g); ~PongController(void); //Begrenzung für Spielfeld static GAMEAREA* ga; void startGame(); };