OSDN Git Service

correspondence multi login
[internetcity/prototype.git] / vc2010_server / vc2010_server / CServerModel.h
index fbeb404..3ef7cb4 100644 (file)
@@ -4,9 +4,17 @@
 // \83C\83\93\83N\83\8b\81[\83h\82Í\95K\82¸\95K\97v\82È\95¨\82¾\82¯
 // \93à\95\94\82Å\97\98\97p\82·\82é\82¾\82¯\82Ì\95¨\82Í\83\\81[\83X\82É\8bL\8fq
 #include "../../common/Data.h"
-#include "../../common/CConnection.h"
+#include "../../common/CServerConnection.h"
 #include "../../common/CServerSocket.h"
-#include "../../common/CSocket.h"
+#include <list>
+#include <vector>
+
+// \92Ê\90M\83N\83\89\83X\83\8a\83X\83g
+typedef std::vector<CServerConnection*> ConnectionVector;
+
+// \83A\83o\83^\81[\8aÇ\97\9d\83\8a\83X\83g
+typedef std::list<AvatarInformation*> AvatarInformationList;
+
 
 // \8aÖ\90\94\96¼\82Í\83\8d\81[\83\8f\83L\83\83\83\81\83\8b\83P\81[\83X\82Æ\82·\82é
 
@@ -20,14 +28,16 @@ class CServerModel
        // \83\81\83\93\83o\95Ï\90\94
        ////////////////////////////////////////////////////////////////////////////////
 private:
-       // \83A\83o\83^\81[\8fî\95ñ
-       AvatarInformation m_AvatarInformation;
-       bool m_isLogin;
+       // \83A\83o\83^\81[\8dÅ\91å\83\8d\81[\83h\90\94
+       static const int MAX_AVATAR_NUMBER = 10;
+       // \8dÅ\91å\90Ú\91±\90\94
+       static const int MAX_CONNECTION_NUMBER = 10;
+       // \83A\83o\83^\81[
+       AvatarInformationList m_AvatarInformations;
        // \92Ê\90M\83N\83\89\83X
-       //CConnection m_Connection;
+       ConnectionVector m_Connections;
        // \83T\81[\83o\81[\83\\83P\83b\83g
        CServerSocket m_ServerSocket;
-       CSocket m_Socket;
 
        ////////////////////////////////////////////////////////////////////////////////
        // \83R\83\93\83X\83g\83\89\83N\83^