子弹 の VISIONS
NEVER back down ~~
C++博客
首页
新随笔
联系
聚合
管理
112 Posts :: 34 Stories :: 99 Comments :: 0 Trackbacks
留言簿
(5)
给我留言
查看公开留言
查看私人留言
随笔分类
(74)
1.1 成长日记(1)
1.2 闲人杂语(3)
1.3 无病呻吟
1.4 英语学习(5)
1.5 生活手册(10)
1.51 工具箱 (8)
1.6 修身齐家(7)
1.n 日语学习(1)
1.x 临时目录(16)
2.0 工作参考(22)
2.1 WIN32 API
2.2 GDI API(1)
2.3 GDI+ API
2.4 Software Design
文章分类
2.1 创意存照
2.2 技术文章
2.3 武文弄墨
2.4 转载存档
搜索
最新随笔
1. [存照] 飞信 发短信 流程
2. Code::Blocks 的中文问题
3. char-sets supported by iconv
4. [GDI] Resolution VS DPI
5. [Vocabulary] Words002
6. 工作中终于要用到数学了!补补
7. 音乐家生活守则[ZT]
8. [设计模式] 上班路上突然想到的builder模式
9. [设计模式] Understand Design Patterns -- Factory Method
10. [Writing] The Good On The Way
11. [经验教训] 设计要点
12. [Writing] What about your living state
13. [Writting] The Spring Festival in my memory
14. 你留意过自己的父母吗?[ZT]
15. 黄帝阴符经
最新评论
1. re: [设计模式] Understand Design Patterns -- Factory Method
评论内容较长,点击标题查看
--Emma
2. re: Part of my Half Year Goal-Plan
评论内容较长,点击标题查看
--Daisy
3. re: [日语词汇] 词汇网站
评论内容较长,点击标题查看
--Check this link
4. re: [日语词汇] 词汇网站
评论内容较长,点击标题查看
--custom papers review
5. re: 数独网址
评论内容较长,点击标题查看
--this site
阅读排行榜
1. GetLastError与FormatMessage联用得到出错原因(15256)
2. 增广贤文[注解](6088)
3. 深圳市公安局派出所地址、电话一览表(4527)
4. 深圳市福田区政府机关联系电话地址一览表(3921)
5. List of Q-codes(2901)
关于GAME的一些思考痕迹
//。。。
posted on 2006-10-19 14:11
子弹のVISIONS
阅读(330)
评论(3)
编辑
收藏
引用
Feedback
#
re: 关于GAME的一些思考痕迹
2006-10-19 14:11
子弹
Game Server System Architecture
1. INPUT
<1> UI Command
· System Command [ GM's Command ]
<2> DataBase System
· Load server configuration
· Load users' information
· Load latest game state
<3> Network Packet
· User data packet [ Users' Command ]
2. PROCESS
<1> UI Command
· Server Management
- StartServer
- StopServer
- RestartServer
- PauseServer
- ResumeServer
· Game Management
-
<2> DataBase System
· Load Server Configuration
· Load Users' Information
· Load latest game state
<3> Network Packet
- Parse packet data
- Update game state
- Transmit packet [ maybe a new packet ]
-
3. OUTPUT
<1> UI Command
· Server Management
- Update Server State
· Game Management
- Update Game State
<2> DataBase System
- Server configuration
- User information
- Game state
<3> Network Packet
- Old packet[ transmit ]
- New packet[ other use ]
回复
更多评论
#
re: 关于GAME的一些思考痕迹
2006-10-19 14:12
子弹
Game Client System Architecture
1. INPUT
<1> UI Command
· System Controll Command
· Game Controll Command
<2> Network Packet
· Game data packet [ From server-side ]
2. PROCESS
<1> UI Command
· System Controll Command
- LoadGameWorld
- LoadUserInformation
- LoadUserConfiguration
-
· Game Controll Command
- Update Sprite State
- Sprite Communication
- Form network packet[ Send to server ]
<2> Network Packet
· Game data packet
- Parse data packet
- Update game state[ World and Scene ]
- Update user state[ Sprite Property ]
3. OUTPUT
<1> Game On Screen [ World, scene, sprite, other things ]
<2> Packet To Server [ Commands ]
回复
更多评论
#
re: 关于GAME的一些思考痕迹
2006-10-19 14:12
子弹
Card Game Framework
desk --> game_status_keeper - - --> GUI
desk --> seat[]
seat --> player(AI/HM)
player
-- AI Player
-- Human Player
player: base_info
player --> handcard
player --> outcard
handcard --> cardlist
outcard --> cardlist
cardlist --> card
handcard --> gamelogic --> outcard
handcard --> AI think --> outcard
handcard --> HM select --> outcard
AI <-- - - AI Brain
HM <-- - - GUI
L1:
gsk->start()
L2:
gsk->genfirstout()/gsk->genfirstoutthisturn()
L3
gsk->makeout(seat)
gsk->isgameover() --> gsk->gamestat() --> gsk->restart() --> L1
NOT OVER -->
gsk->isturnover() --> gsk->turnstat() --> gsk->newturn() --> L2
NOT OVER -->
gsk->gonext() --> L3
gsk->makeout()
ai->think() --> ai->makeup()
hm->select() --> hm->makeup()
gsk->generatecards()
--> gsk->dispacthcards()
--> gsk->waitformsg()
回复
更多评论
刷新评论列表
只有注册用户
登录
后才能发表评论。
【推荐】100%开源!大型工业跨平台软件C++源码提供,建模,组态!
网站导航:
博客园
IT新闻
BlogJava
知识库
博问
管理
Powered by:
C++博客
Copyright © 子弹のVISIONS