battle design
2016-06-17 14:58:34 0 举报
登录查看完整内容
作者其他创作
大纲/内容
IBattleMoverShip
PVPBattle
attributeA attributeB
Init()Close()
IBattleMover
MoverId() MoverIdTypeType() BattleMoverTypeModeId() uint32Name() stringFatherId() MoverIdTypeLiveTime() uint16DirectionX() float32DirectionY() float32VelocityX() float32VelocityY() float32CoodinateX() CoordinateTypeCoodinateY() CoordinateTypeCoodinateFX() CoordinateTypeFloatCoodinateFY() CoordinateTypeFloatLastCoodinateFX() CoordinateTypeFloatLastCoodinateFY() CoordinateTypeFloatBornTime() int64 Team() uint8
IAlive
Hp() uint32SetHp(uint32)MaxHp() uint32SetMaxHp(uint32)Shield() uint32SetShield(uint32)MaxShield() uint32SetMaxShield(uint32)IsAlive() boolSetAlive(alive bool)DeadTime() int64Dead()GetDropsItems() map[uint32]uint32
BaseBattle
clients : map[uint32]BattleClientships : map[uint32]BattleShipviewTree : map[uint32]IBattleMoverradarTree : map[uint32]radarMoverhandler : map[uint16] func(cmd *BattleCmd)
- methodA()- methodB()
IItem
IBattleMoverItemId() uint32ItemNum() uint32IsAlive() bool SetAlive(bool) Drag() uint32 DragRocks() *dragRockSetDragRocks(dragRock *dragRock)
PVEBattle
BattleCmd
id : uint16 body : interface{} session : *Session battle : *BaseBattle
Call() error
IBattleMoverRock
\tWeight() uint32\tBonus() uint32 \tResource() uint32\tAmountMin() uint32 \tAmountMax()
Executor
bus : chan context.ICallable ticker : *time.Ticker
Execute(context.ICallable) Shutdown() Serve()
BattleIntf
Init() Start() AddCmd( BattleCmd ) Close()
BattleSession
id : uint64 account : stringbid : *Sessioncid : uint32*context.Endpoint
ISkillInMap
MoverId() MoverIdTypeSenderId() MoverIdTypeSkillId() SkillIdType LiveTime() uint16 SetLiveTime(uint16)BornTime() int64 SetBornTime(int64)SkillRange() uint16 SetSkillRange(uint16)SkillCX() CoordinateTypeFloat SkillCY() CoordinateTypeFloat SkillNowX() CoordinateTypeFloat SkillNowY() CoordinateTypeFloat SetSkillNowX(CoordinateTypeFloat)SetSkillNowY(CoordinateTypeFloat) VelocityX() float32 VelocityY() float32 LastTickCalTime() int64 SetLastTickCalTime(int64)State() uint8SetState(uint8) TriggerId() MoverIdType SetTriggerId(MoverIdType)
0 条评论
回复 删除
下一页