子弹 の VISIONS

NEVER back down ~~

C++博客 首页 新随笔 联系 聚合 管理
  112 Posts :: 34 Stories :: 99 Comments :: 0 Trackbacks

//。。。
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()

  回复  更多评论
  


只有注册用户登录后才能发表评论。
网站导航: 博客园   IT新闻   BlogJava   知识库   博问   管理