1 #ifndef INC_CServerModel
2 #define INC_CServerModel
4 //
\83C
\83\93\83N
\83\8b\81[
\83h
\82Í
\95K
\82¸
\95K
\97v
\82È
\95¨
\82¾
\82¯
5 //
\93à
\95\94\82Å
\97\98\97p
\82·
\82é
\82¾
\82¯
\82Ì
\95¨
\82Í
\83\
\81[
\83X
\82É
\8bL
\8fq
6 #include "../../common/Data.h"
7 #include "../../common/CServerConnection.h"
8 #include "../../common/CServerSocket.h"
12 //
\92Ê
\90M
\83N
\83\89\83X
\83\8a\83X
\83g
13 typedef std::vector<CServerConnection*> ConnectionVector;
15 //
\83A
\83o
\83^
\81[
\8aÇ
\97\9d\83\8a\83X
\83g
16 typedef std::list<AvatarInformation*> AvatarInformationList;
19 //
\8aÖ
\90\94\96¼
\82Í
\83\8d\81[
\83\8f\83L
\83\83\83\81\83\8b\83P
\81[
\83X
\82Æ
\82·
\82é
22 ////////////////////////////////////////////////////////////////////////////////
24 ////////////////////////////////////////////////////////////////////////////////
27 ////////////////////////////////////////////////////////////////////////////////
28 //
\83\81\83\93\83o
\95Ï
\90\94
29 ////////////////////////////////////////////////////////////////////////////////
31 //
\83A
\83o
\83^
\81[
\8dÅ
\91å
\83\8d\81[
\83h
\90\94
32 static const int MAX_AVATAR_NUMBER = 10;
33 //
\8dÅ
\91å
\90Ú
\91±
\90\94
34 static const int MAX_CONNECTION_NUMBER = 10;
36 AvatarInformationList m_AvatarInformations;
37 //
\92Ê
\90M
\83N
\83\89\83X
38 ConnectionVector m_Connections;
39 //
\83T
\81[
\83o
\81[
\83\
\83P
\83b
\83g
40 CServerSocket m_ServerSocket;
42 ////////////////////////////////////////////////////////////////////////////////
43 //
\83R
\83\93\83X
\83g
\83\89\83N
\83^
44 ////////////////////////////////////////////////////////////////////////////////
48 ////////////////////////////////////////////////////////////////////////////////
49 //
\83f
\83X
\83g
\83\89\83N
\83^
50 ////////////////////////////////////////////////////////////////////////////////
54 ////////////////////////////////////////////////////////////////////////////////
55 // static
\8aÖ
\90\94\81A
\83R
\81[
\83\8b\83o
\83b
\83N
\8aÖ
\90\94
56 ////////////////////////////////////////////////////////////////////////////////
57 ////////////////////////////////////////////////////////////////////////////////
58 //
\91\80\8dì
\83\81\83\
\83b
\83h
59 ////////////////////////////////////////////////////////////////////////////////
66 ////////////////////////////////////////////////////////////////////////////////
67 //
\91®
\90«
\83\81\83\
\83b
\83h
68 ////////////////////////////////////////////////////////////////////////////////
70 ////////////////////////////////////////////////////////////////////////////////
71 //
\83C
\83e
\83\8c\81[
\83V
\83\87\83\93
72 ////////////////////////////////////////////////////////////////////////////////
73 ////////////////////////////////////////////////////////////////////////////////
75 ////////////////////////////////////////////////////////////////////////////////
77 ////////////////////////////////////////////////////////////////////////////////
79 ////////////////////////////////////////////////////////////////////////////////
80 ////////////////////////////////////////////////////////////////////////////////
81 //
\8f\83\90\88\89¼
\91z
\8aÖ
\90\94\81A
\92è
\8b`
\82Ì
\82Ý
\81i
\94ñ
\8eÀ
\91\95\92ñ
\8b\9f\81j
82 ////////////////////////////////////////////////////////////////////////////////
83 ////////////////////////////////////////////////////////////////////////////////
84 //
\93à
\95\94\83N
\83\89\83X
85 ////////////////////////////////////////////////////////////////////////////////
90 #endif //INC_CServerModel