tui

package
v0.0.0-...-6c42077 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 27, 2019 License: Apache-2.0 Imports: 4 Imported by: 3

Documentation

Index

Constants

View Source
const (
	ROOKIE = iota + 1
	CHAMPION
	ULTIMATE
	MEGA
)

Variables

This section is empty.

Functions

This section is empty.

Types

type JoinRoom

type JoinRoom struct {
	JOINROOM uint8
	QUIT     uint8
	// contains filtered or unexported fields
}

func NewJoinRoom

func NewJoinRoom() *JoinRoom

func (*JoinRoom) Refresh

func (l *JoinRoom) Refresh()

func (*JoinRoom) Result

func (l *JoinRoom) Result() uint8

func (*JoinRoom) Show

func (l *JoinRoom) Show()

type Login

type Login struct {
	LOGIN uint8
	QUIT  uint8
	// contains filtered or unexported fields
}

func NewLogin

func NewLogin() *Login

func (*Login) Refresh

func (l *Login) Refresh()

func (*Login) Result

func (l *Login) Result() uint8

func (*Login) Show

func (l *Login) Show()

type RPCBattle

type RPCBattle struct {
	Rock        int32
	Paper       int32
	Scissors    int32
	Identity    int32
	OtherSideID uint64
	// contains filtered or unexported fields
}

func NewRPCBattle

func NewRPCBattle(i int32, otherID uint64) *RPCBattle

func (*RPCBattle) Refresh

func (l *RPCBattle) Refresh()

func (*RPCBattle) Result

func (l *RPCBattle) Result() int32

func (*RPCBattle) Show

func (l *RPCBattle) Show()

type ReconnectTUI

type ReconnectTUI struct {
	RECONNECT uint8
	QUIT      uint8
	// contains filtered or unexported fields
}

func NewReconnect

func NewReconnect() *ReconnectTUI

func (*ReconnectTUI) Refresh

func (l *ReconnectTUI) Refresh()

func (*ReconnectTUI) Result

func (l *ReconnectTUI) Result() uint8

func (*ReconnectTUI) Show

func (l *ReconnectTUI) Show()

type Skill

type Skill struct {
	H *player.Hero

	RoomIDList   []uint64
	SkillType    uint8
	SkillLevel   uint8
	SkillTargets []uint64
	POWERUP      uint8
	DEFENCE      uint8
	ESCAPE       uint8
	QUIT         uint8
	ATTACK       uint8
	EVOLVE       uint8
	// contains filtered or unexported fields
}

func NewSkill

func NewSkill() *Skill

func (*Skill) IsLevelType

func (s *Skill) IsLevelType() bool

func (*Skill) IsSkillLevelValid

func (s *Skill) IsSkillLevelValid() bool

func (*Skill) IsSkillTargetValid

func (s *Skill) IsSkillTargetValid() bool

func (*Skill) IsSkillTypValid

func (s *Skill) IsSkillTypValid() bool

func (*Skill) Refresh

func (s *Skill) Refresh()

func (*Skill) RefreshLevel

func (s *Skill) RefreshLevel()

func (*Skill) RefreshSkillTargets

func (s *Skill) RefreshSkillTargets()

func (*Skill) RefreshType

func (s *Skill) RefreshType()

func (*Skill) Result

func (s *Skill) Result() uint8

func (*Skill) SetHero

func (s *Skill) SetHero(hero *player.Hero)

func (*Skill) Show

func (s *Skill) Show()

func (*Skill) ShowAttackTarget

func (s *Skill) ShowAttackTarget()

func (*Skill) ShowLevel

func (s *Skill) ShowLevel()

type TUI

type TUI interface {
	Show()
	Result() uint8
	Refresh()
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL