OSDN Git Service

correspondence multi login
[internetcity/prototype.git] / vc2010_server / vc2010_server / CServerModel.h
1 #ifndef INC_CServerModel
2 #define INC_CServerModel
3
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"
9 #include <list>
10 #include <vector>
11
12 // \92Ê\90M\83N\83\89\83X\83\8a\83X\83g
13 typedef std::vector<CServerConnection*> ConnectionVector;
14
15 // \83A\83o\83^\81[\8aÇ\97\9d\83\8a\83X\83g
16 typedef std::list<AvatarInformation*> AvatarInformationList;
17
18
19 // \8aÖ\90\94\96¼\82Í\83\8d\81[\83\8f\83L\83\83\83\81\83\8b\83P\81[\83X\82Æ\82·\82é
20
21
22 ////////////////////////////////////////////////////////////////////////////////
23 // CServerModel
24 ////////////////////////////////////////////////////////////////////////////////
25 class CServerModel
26 {
27         ////////////////////////////////////////////////////////////////////////////////
28         // \83\81\83\93\83o\95Ï\90\94
29         ////////////////////////////////////////////////////////////////////////////////
30 private:
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;
35         // \83A\83o\83^\81[
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;
41
42         ////////////////////////////////////////////////////////////////////////////////
43         // \83R\83\93\83X\83g\83\89\83N\83^
44         ////////////////////////////////////////////////////////////////////////////////
45 public:
46         CServerModel();
47
48         ////////////////////////////////////////////////////////////////////////////////
49         // \83f\83X\83g\83\89\83N\83^
50         ////////////////////////////////////////////////////////////////////////////////
51 public:
52         ~CServerModel();
53
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         ////////////////////////////////////////////////////////////////////////////////
60 public:
61         // \8f\89\8aú\89»
62         bool initialize();
63         // \8f\88\97\9d
64         bool process();
65
66         ////////////////////////////////////////////////////////////////////////////////
67         // \91®\90«\83\81\83\\83b\83h
68         ////////////////////////////////////////////////////////////////////////////////
69
70         ////////////////////////////////////////////////////////////////////////////////
71         // \83C\83e\83\8c\81[\83V\83\87\83\93
72         ////////////////////////////////////////////////////////////////////////////////
73         ////////////////////////////////////////////////////////////////////////////////
74         // \8fó\91Ô
75         ////////////////////////////////////////////////////////////////////////////////
76
77         ////////////////////////////////////////////////////////////////////////////////
78         // \89\89\8eZ\8eq
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         ////////////////////////////////////////////////////////////////////////////////
86
87
88 };
89
90 #endif //INC_CServerModel