移除测试代码
This commit is contained in:
parent
7e31b04d51
commit
7c368f7a41
@ -55,7 +55,7 @@ func (this *Room) RandomPlayType() (itype int32) {
|
|||||||
weight = append(weight, v.Weight)
|
weight = append(weight, v.Weight)
|
||||||
}
|
}
|
||||||
itype = list[comm.GetRandW(weight)].Key
|
itype = list[comm.GetRandW(weight)].Key
|
||||||
itype = 3
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -146,17 +146,7 @@ func (this *Room) AiOperator() {
|
|||||||
this.player2.Energy += v.CurEnergy
|
this.player2.Energy += v.CurEnergy
|
||||||
v.CurEnergy = this.player2.Energy
|
v.CurEnergy = this.player2.Energy
|
||||||
}
|
}
|
||||||
// for _, v := range szMap { //
|
|
||||||
// fmt.Printf("================\n")
|
|
||||||
// var v1 int
|
|
||||||
// for index := Width - 1; index >= 0; index-- {
|
|
||||||
// for j := 0; j < Height; j++ {
|
|
||||||
// v1 = index + j*7
|
|
||||||
// fmt.Printf("%d:%d ", v1, v.Data[v1].Cid)
|
|
||||||
// }
|
|
||||||
// fmt.Printf("\n")
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
// 广播消息
|
// 广播消息
|
||||||
if err := this.module.SendMsgSyncToSession(string(this.module.GetType()), "operatorrst", &pb.EntertainOperatorRstPush{
|
if err := this.module.SendMsgSyncToSession(string(this.module.GetType()), "operatorrst", &pb.EntertainOperatorRstPush{
|
||||||
Mpadata: szMap,
|
Mpadata: szMap,
|
||||||
@ -392,17 +382,6 @@ func (this *Room) ReceiveMessage(session comm.IUserSession, stype string, msg pr
|
|||||||
this.round++
|
this.round++
|
||||||
}
|
}
|
||||||
|
|
||||||
// for _, v := range szMap { //
|
|
||||||
// fmt.Printf("================\n")
|
|
||||||
// var v1 int
|
|
||||||
// for index := Width - 1; index >= 0; index-- {
|
|
||||||
// for j := 0; j < Height; j++ {
|
|
||||||
// v1 = index + j*7
|
|
||||||
// fmt.Printf("%d:%d ", v1, v.Data[v1].Cid)
|
|
||||||
// }
|
|
||||||
// fmt.Printf("\n")
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
// 广播消息
|
// 广播消息
|
||||||
if err := this.module.SendMsgSyncToSession(string(this.module.GetType()), "operatorrst", &pb.EntertainOperatorRstPush{
|
if err := this.module.SendMsgSyncToSession(string(this.module.GetType()), "operatorrst", &pb.EntertainOperatorRstPush{
|
||||||
Mpadata: szMap,
|
Mpadata: szMap,
|
||||||
|
Loading…
Reference in New Issue
Block a user