parties

package
v0.0.10-test Latest Latest
Warning

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

Go to latest
Published: May 15, 2025 License: GPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Party

type Party struct {
	LeaderUserId  int
	UserIds       []int
	InviteUserIds []int
	AutoAttackers []int
	Position      map[int]string
}

func Get

func Get(userId int) *Party

func New

func New(userId int) *Party

func (*Party) AcceptInvite

func (p *Party) AcceptInvite(userId int) bool

func (*Party) ChanceToBeTargetted

func (p *Party) ChanceToBeTargetted(userId int) int

func (*Party) DeclineInvite

func (p *Party) DeclineInvite(userId int) bool

func (*Party) Disband

func (p *Party) Disband()

func (*Party) GetAutoAttackUserIds

func (p *Party) GetAutoAttackUserIds() []int

func (*Party) GetInvited

func (p *Party) GetInvited() []int

func (*Party) GetMembers

func (p *Party) GetMembers() []int

func (*Party) GetRank

func (p *Party) GetRank(userId int) string

func (*Party) InvitePlayer

func (p *Party) InvitePlayer(userId int) bool

func (*Party) Invited

func (p *Party) Invited(userId int) bool

func (*Party) IsLeader

func (p *Party) IsLeader(userId int) bool

func (*Party) IsMember

func (p *Party) IsMember(userId int) bool

func (*Party) Leave

func (p *Party) Leave(userId int) bool

func (*Party) New

func (p *Party) New(userId int) *Party

func (*Party) SetAutoAttack

func (p *Party) SetAutoAttack(userId int, on bool) bool

func (*Party) SetRank

func (p *Party) SetRank(userId int, rank string)

Jump to

Keyboard shortcuts

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