OSDN Git Service

fff4b4f89e0b1fff4613f0b952e91130114fa838
[internetcity/prototype.git] / vc2010_client / vc2010_client / CClientModel.h
1 #ifndef INC_CClientModel
2 #define INC_CClientModel
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/CConnection.h"
8 #include "../../common/CSocket.h"
9
10 #include <list>
11
12 // \83A\83o\83^\81[\8aÇ\97\9d\83\8a\83X\83g
13 typedef std::list<AvatarInformation> AvatarInformationList;
14
15 // \8aÖ\90\94\96¼\82Í\83\8d\81[\83\8f\83L\83\83\83\81\83\8b\83P\81[\83X\82Æ\82·\82é
16
17 ////////////////////////////////////////////////////////////////////////////////
18 // CClientModel
19 ////////////////////////////////////////////////////////////////////////////////
20 class CClientModel
21 {
22         ////////////////////////////////////////////////////////////////////////////////
23         // \83\81\83\93\83o\95Ï\90\94
24         ////////////////////////////////////////////////////////////////////////////////
25 private:
26         // \83A\83o\83^\81[\8dÅ\91å\83\8d\81[\83h\90\94
27         static const int MAX_AVATAR_NUMBER = 10;
28         // \83A\83o\83^\81[
29         AvatarInformationList m_AvatarInformations;
30         // \92Ê\90M\83N\83\89\83X
31         CSocket m_Socket;
32
33         std::list<std::string> m_Events;
34
35         // \83\8d\83O\83C\83\93\96¼
36         std::string m_LoginName;
37
38         ////////////////////////////////////////////////////////////////////////////////
39         // \83R\83\93\83X\83g\83\89\83N\83^
40         ////////////////////////////////////////////////////////////////////////////////
41 public:
42         CClientModel();
43
44         ////////////////////////////////////////////////////////////////////////////////
45         // \83f\83X\83g\83\89\83N\83^
46         ////////////////////////////////////////////////////////////////////////////////
47 public:
48         ~CClientModel();
49
50         ////////////////////////////////////////////////////////////////////////////////
51         // static\8aÖ\90\94\81A\83R\81[\83\8b\83o\83b\83N\8aÖ\90\94
52         ////////////////////////////////////////////////////////////////////////////////
53         ////////////////////////////////////////////////////////////////////////////////
54         // \91\80\8dì\83\81\83\\83b\83h
55         ////////////////////////////////////////////////////////////////////////////////
56 public:
57         // \8f\89\8aú\89»
58         bool initialize();
59         // \83C\83x\83\93\83g\92Ç\89Á
60         bool addEvent(std::string);
61         // \8f\88\97\9d
62         bool process();
63
64         ////////////////////////////////////////////////////////////////////////////////
65         // \91®\90«\83\81\83\\83b\83h
66         ////////////////////////////////////////////////////////////////////////////////
67 public:
68         void setLoginName(std::string in_LoginName)
69         {
70                 m_LoginName = in_LoginName;
71         }
72
73         const AvatarInformationList* getAvatarInformationList()
74         {
75                 // \95Ê\83X\83\8c\83b\83h\82É\82æ\82è\8f\91\82«\8d\9e\82Ý\82Æ\93¯\8e\9e\82É\93Ç\82Ý\8d\9e\82Þ\89Â\94\\90«\82 \82è\81i\8c»\8dÝ\96¢\91Î\89\9e\81j
76                 return &m_AvatarInformations;
77         }
78
79         ////////////////////////////////////////////////////////////////////////////////
80         // \83C\83e\83\8c\81[\83V\83\87\83\93
81         ////////////////////////////////////////////////////////////////////////////////
82         ////////////////////////////////////////////////////////////////////////////////
83         // \8fó\91Ô
84         ////////////////////////////////////////////////////////////////////////////////
85
86         ////////////////////////////////////////////////////////////////////////////////
87         // \89\89\8eZ\8eq
88         ////////////////////////////////////////////////////////////////////////////////
89         ////////////////////////////////////////////////////////////////////////////////
90         // \8f\83\90\88\89¼\91z\8aÖ\90\94\81A\92è\8b`\82Ì\82Ý\81i\94ñ\8eÀ\91\95\92ñ\8b\9f\81j
91         ////////////////////////////////////////////////////////////////////////////////
92         ////////////////////////////////////////////////////////////////////////////////
93         // \93à\95\94\83N\83\89\83X
94         ////////////////////////////////////////////////////////////////////////////////
95
96
97 };
98
99 #endif //INC_CClientModel