1
/***************************************************************************
2
* KBlocks, a falling blocks game for KDE *
3
* Copyright (C) 2010 Zhongjie Cai <squall.leonhart.cai@gmail.com> *
5
* This program is free software; you can redistribute it and/or modify *
6
* it under the terms of the GNU General Public License as published by *
7
* the Free Software Foundation; either version 2 of the License, or *
8
* (at your option) any later version. *
9
***************************************************************************/
10
#ifndef KBLOCKSPLAYNETWORK_H
11
#define KBLOCKSPLAYNETWORK_H
13
#include "KBlocksGameLogic.h"
14
#include "GamePlayerInterface.h"
15
#include "KBlocksNetPlayer.h"
17
class KBlocksPlayNetwork
20
KBlocksPlayNetwork(int capacity, const string& serverIP, int localPort);
21
~KBlocksPlayNetwork();
24
bool addGamePlayer(GamePlayerInterface * p);
25
void clearGamePlayer();
42
KBlocksNetPlayer** maPlayerList;
44
KBlocksGameLogic* mpGameLogic;