Documentation ¶
Index ¶
- Variables
- type Collider
- type CommonLocation
- func (l *CommonLocation) AddPassage(in Position, out Position, to Location)
- func (l CommonLocation) LeftTop() Position
- func (l CommonLocation) Name() string
- func (l CommonLocation) Npcs() []Npc
- func (l CommonLocation) Objects() []Object
- func (l CommonLocation) Passages() []Passage
- func (l *CommonLocation) PlaceObject(object Object, at Position)
- func (l CommonLocation) RightBottom() Position
- func (l *CommonLocation) Spawn(npc Npc, position Position)
- type Location
- type Npc
- type Object
- type Passage
- type Player
- func (p Player) ActiveDialogue() rpg.Dialogue
- func (p Player) ChooseDialogueReplyOption(choice int)
- func (p Player) Collides(with Position) bool
- func (p *Player) EndDialogue()
- func (p Player) Icon() rune
- func (p Player) Interact(element interactive.Element)
- func (p *Player) MoveTo(to Position)
- func (p Player) Name() string
- func (p Player) Position() Position
- func (p *Player) StartDialogue(with Npc)
- func (p Player) Style() tcell.Style
- func (p *Player) Teleport(to Position)
- func (p *Player) TeleportToLocation(location Location, to Position)
- func (p Player) Whereabouts() Location
- type Pos
- type Position
Constants ¶
This section is empty.
Variables ¶
View Source
var NoPosition = NewPos(0, 0)
Functions ¶
This section is empty.
Types ¶
type CommonLocation ¶
type CommonLocation struct {
// contains filtered or unexported fields
}
func NewLocation ¶
func NewLocation(whereabouts rpg.Location) CommonLocation
func (*CommonLocation) AddPassage ¶
func (l *CommonLocation) AddPassage(in Position, out Position, to Location)
func (CommonLocation) LeftTop ¶
func (l CommonLocation) LeftTop() Position
func (CommonLocation) Name ¶
func (l CommonLocation) Name() string
func (CommonLocation) Npcs ¶
func (l CommonLocation) Npcs() []Npc
func (CommonLocation) Objects ¶
func (l CommonLocation) Objects() []Object
func (CommonLocation) Passages ¶
func (l CommonLocation) Passages() []Passage
func (*CommonLocation) PlaceObject ¶
func (l *CommonLocation) PlaceObject(object Object, at Position)
func (CommonLocation) RightBottom ¶
func (l CommonLocation) RightBottom() Position
func (*CommonLocation) Spawn ¶
func (l *CommonLocation) Spawn(npc Npc, position Position)
type Player ¶
type Player struct {
// contains filtered or unexported fields
}
func (Player) ActiveDialogue ¶
func (Player) ChooseDialogueReplyOption ¶
func (*Player) EndDialogue ¶
func (p *Player) EndDialogue()
func (Player) Interact ¶
func (p Player) Interact(element interactive.Element)
func (*Player) StartDialogue ¶
func (*Player) TeleportToLocation ¶
func (Player) Whereabouts ¶
Click to show internal directories.
Click to hide internal directories.