My Project
 All Classes
Controller.h
1 /*Controller.h*/
2 
3 #ifndef SUPER
4 #define SUPER
5 
6 #include "Playground.h"
7 #include "LvlCount.h"
8 
9 class Area;
10 class Client;
11 
13 {
14  private:
15  Playground *game;
16  LvlCount *lvlcnt;
17 
18  CL_Thread thread;
19  CL_String8 nickname,serverIp,serverPort;
20  bool networkSet;
21 
22  public:
23  Controller();
24  Controller(Playground *pg, LvlCount *lc);
25  void reset();
26  void keyAction(int id);
27  void startGame();
28  void quitGame();
29  void setNetwork(CL_String8 nick,CL_String8 ip,CL_String8 port);
30  void startNetwork();
31  void endNetwork();
32  int getLives(int i);
33  int getRemainingTime();
34  bool isPaused();
35  bool isNetworkSet();
36  Area getArea();
37  Client *client;
38 
39 
40 };
41 
42 #endif
43