Documentation ¶
Overview ¶
Copyright 2014 loolgame Author. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright 2014 loolgame Author. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
* 一定要记得在confin.json配置这个模块的参数,否则无法使用
Copyright 2014 mqantserver Author. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Index ¶
- Variables
- func GetRandomString(lenght int) string
- type BaseTable
- type CallBackMsg
- type Hitball
- type QueueMsg
- type QueueReceive
- type Room
- type Table
- func (self *Table) Empty() bool
- func (self *Table) Full() bool
- func (self *Table) NotifyAddCoins(coins *objects.Coins)
- func (self *Table) NotifyAxes(arge interface{})
- func (self *Table) NotifyEatCoins(coins *objects.Coins)
- func (self *Table) NotifyJoin(player *objects.Player)
- func (self *Table) Start()
- func (self *Table) Stop()
- func (self *Table) TableId() int
- func (self *Table) Update(arge interface{})
Constants ¶
This section is empty.
Variables ¶
var Module = func() module.Module { gate := new(Hitball) return gate }
Functions ¶
Types ¶
type BaseTable ¶
type BaseTable struct {
// contains filtered or unexported fields
}
func (*BaseTable) ExecuteEvent ¶
func (self *BaseTable) ExecuteEvent(arge interface{})
* 【每帧调用】执行队列中的所有事件
func (*BaseTable) SetReceive ¶
func (self *BaseTable) SetReceive(receive QueueReceive)
type CallBackMsg ¶
type CallBackMsg struct {
// contains filtered or unexported fields
}
type Hitball ¶
type Hitball struct { basemodule.BaseModule // contains filtered or unexported fields }
type QueueReceive ¶
type Room ¶
type Room struct {
// contains filtered or unexported fields
}
func (*Room) GetEmptyTable ¶
type Table ¶
type Table struct { BaseTable // contains filtered or unexported fields }
func (*Table) NotifyAddCoins ¶
* 通知所有玩家新加了金币
func (*Table) NotifyEatCoins ¶
* 通知所有玩家金币已经被吃掉