UI类图
2017-09-11 10:08:17 0 举报
游戏架构的类图~~~~~~~~~~~~~~~~~~~~
作者其他创作
大纲/内容
DBManager(数据库管理类)
+ public 士兵类 MatchingSoldierOfData(士兵类型的形参)+ public 建筑类 MatchingBuildOfData(建筑物类型形参)+ public void SetLanguage(String language)+ public String MatchingLanguage(string aKey)+ public Dictionary MatchingFightScenesOfData(string aKey)+ public String MatchingURL:(string akey)+ public AudioSource MatchingMusic:(string akey)+ public Bool isUpdateData()
SceneManager(场景跳转控制)
+此类各个方法都是类方法
Enum LoadingType(Loading枚举)
Loading_ProgressBarLoading_Round
LoginController
- AccountText: private Text- PasswordText: private Text
- private void ClickedLogin_AccountBtn()- private void ClickedLogin_Guess()- private void ClickedLogin_Register()- protected override void onSucceedOfRequest(Dictionary)- protected override void onErrorOfRequest(Error error)
GameDataManager
- public void Start()- public void Init()- public void MAP_Path_Init()- public void MAP_Build_Init()
1
CurrentUserInfo(当前用户信息)
- public void CreateUserInfo(Dictionary info) {base.Init()}
UserBase(用户信息)
- level:public int- name: public string- gold(金钱): public long int- crystal(水晶): public long int- energy(能量源): public long int- buildList(建筑): public List- defenseSoldierList: public Dictionary
- protected void Init(Dictionary Info)
BufferPage(缓冲页)
- VersionLabel: public string(可能有进入游戏按钮)
- public void Start()- private void download_Request()- private void finishDownload(Dictionary result)
LoginBase(登陆)
- login_Type: public LoginType
- protected void goRequest()- protected void changType(LoginType type)- protected virtual void onSucceedOfRequest(Dictionary result)- protected virtual void onErrorOfRequest(Error error)- protected void Init()- private void onRequesting()- private void returnResult_Account(Dictionary result)- private void returnResult_Guess(Dictionary result)- private void returnResult_Register(Dictionary result)- private void returnResult_Statistics(Dictionary result)
GameLevelsType(游戏关卡类型枚举)
BattleScene(战斗场景)
NormalScene(正常场景)
TargetUserInfo(目标用户信息)
+ Instance: public TargetUserInfo{get}+ mInstance: private TargetUserInfo
LoadingBase(加载页)
- loadType: public LoadingType
- protected void Init(LoadingType type)- protected vritual void DoUpdate()- void Update() {if(){DoUpdate()}}
BattleManager(战斗管理类)
+ Instance: public BattleManager{get}+ mInstance: private BattleManager
Enum LoginType(登陆类型枚举)
Login_AccountLogin_GuessLogin_RegisterStatistics
BattlefieldManager(副本管理类)
+ Instance: public BattlefieldManager{get}+ mInstance: private BattlefieldManager- glod: public int- crystal: public int- energy: public int
- public void BattleSceneInit(GameLevelsType type)
LoadingController
+ Instance: public LoadingController{get}+ mInstance: private LoadingController
- protected override void DoUpdate()- public void ShowLoading()- public void HideLoading()
0 条评论
下一页