-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathDebugGame.h
More file actions
38 lines (31 loc) · 831 Bytes
/
DebugGame.h
File metadata and controls
38 lines (31 loc) · 831 Bytes
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
//
// DebugGame.h
// ServerXcode
//
// Created by James Lennon on 10/31/14.
// Copyright (c) 2014 James Lennon. All rights reserved.
//
#ifndef __ServerXcode__DebugGame__
#define __ServerXcode__DebugGame__
#include <stdio.h>
#include "openpad.h"
using namespace openpad;
class DebugGame: public ServerHandler {
int numPlayers, maxPlayers;
public:
DebugGame(int maxPlayers);
//Override Methods
void onStart();
virtual bool canJoin(Client* cli);
virtual string whyIsBanned(Client* cli);
string getName();
string getDesc();
int getFilledSlots();
int getOpenSlots();
void onJoin(Client* cli);
PadConfig getDefaultControls();
virtual string getIconFilePath();
void onDisconnect(Client* cli);
void onPadUpdate(Client* cli, PadUpdateObject update);
};
#endif