Documentation
¶
Index ¶
- type ShieldCtrl
- func (s *ShieldCtrl) Add(shd core.Shield)
- func (s *ShieldCtrl) AddBonus(f func() float64)
- func (s *ShieldCtrl) Count() int
- func (s *ShieldCtrl) Get(t core.ShieldType) core.Shield
- func (s *ShieldCtrl) IsShielded(char int) bool
- func (s *ShieldCtrl) OnDamage(dmg float64, ele core.EleType) float64
- func (s *ShieldCtrl) Tick()
- type Tmpl
- func (t *Tmpl) CurrentHP() float64
- func (t *Tmpl) Desc() string
- func (t *Tmpl) Element() core.EleType
- func (t *Tmpl) Expiry() int
- func (t *Tmpl) Key() int
- func (t *Tmpl) OnDamage(dmg float64, ele core.EleType, bonus float64) (float64, bool)
- func (t *Tmpl) OnExpire()
- func (t *Tmpl) OnOverwrite()
- func (t *Tmpl) Type() core.ShieldType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ShieldCtrl ¶
type ShieldCtrl struct {
// contains filtered or unexported fields
}
func NewCtrl ¶
func NewCtrl(c *core.Core) *ShieldCtrl
func (*ShieldCtrl) Add ¶
func (s *ShieldCtrl) Add(shd core.Shield)
func (*ShieldCtrl) AddBonus ¶
func (s *ShieldCtrl) AddBonus(f func() float64)
func (*ShieldCtrl) Count ¶
func (s *ShieldCtrl) Count() int
func (*ShieldCtrl) Get ¶
func (s *ShieldCtrl) Get(t core.ShieldType) core.Shield
func (*ShieldCtrl) IsShielded ¶
func (s *ShieldCtrl) IsShielded(char int) bool
func (*ShieldCtrl) Tick ¶
func (s *ShieldCtrl) Tick()
Click to show internal directories.
Click to hide internal directories.