Documentation ¶
Index ¶
- Variables
- type Dialogue
- type Location
- type NPC
- type Phrase
- type Player
- func (p Player) ActiveDialogue() Dialogue
- func (p *Player) EndConversation()
- func (p *Player) MoveToLocation(location Location)
- func (p Player) Name() string
- func (p *Player) Reply(to NPC, with Phrase) Dialogue
- func (p *Player) StartConversation(npc NPC) Dialogue
- func (p Player) Whereabouts() Location
Constants ¶
This section is empty.
Variables ¶
View Source
var NoDialogue = NewDialogue("", nil)
View Source
var NoNpc = NewNPC("", nil)
Functions ¶
This section is empty.
Types ¶
type Dialogue ¶
type Dialogue struct {
// contains filtered or unexported fields
}
func NewDialogue ¶
type Location ¶
type Location struct {
// contains filtered or unexported fields
}
func NewLocation ¶
type NPC ¶
type NPC struct {
// contains filtered or unexported fields
}
func (NPC) StartConversation ¶
type Player ¶
type Player struct {
// contains filtered or unexported fields
}
func (Player) ActiveDialogue ¶
func (*Player) EndConversation ¶
func (p *Player) EndConversation()
func (*Player) MoveToLocation ¶
func (*Player) StartConversation ¶
func (Player) Whereabouts ¶
Click to show internal directories.
Click to hide internal directories.