Documentation ¶
Index ¶
- Variables
- type Buffer
- func (b *Buffer) CreateOutput(messageToRequestCreator string, messageToTarget string, ...) *Output
- func (b *Buffer) CreateOutputToRequestCreator(messageToRequestCreator string) *Output
- func (b *Buffer) GetCommand() Command
- func (b *Buffer) MatchesSubject(s []string) bool
- func (b *Buffer) ToString() string
- type Client
- type Command
- type Output
- type Server
- type Status
Constants ¶
This section is empty.
Variables ¶
View Source
var Commands []Command
Functions ¶
This section is empty.
Types ¶
type Buffer ¶
func (*Buffer) CreateOutput ¶
func (*Buffer) CreateOutputToRequestCreator ¶
func (*Buffer) GetCommand ¶
func (*Buffer) MatchesSubject ¶
type Client ¶
type Client struct { //mob *gomud.Mob Message string // contains filtered or unexported fields }
func (*Client) WritePrompt ¶
type Command ¶
type Command string
const ( LookCommand Command = "look" NorthCommand Command = "north" SouthCommand Command = "south" EastCommand Command = "east" WestCommand Command = "west" UpCommand Command = "up" DownCommand Command = "down" GetCommand Command = "get" DropCommand Command = "drop" WearCommand Command = "wear" RemoveCommand Command = "remove" KillCommand Command = "kill" FleeCommand Command = "flee" InventoryCommand Command = "inventory" SitCommand Command = "sit" WakeCommand Command = "wake" SleepCommand Command = "sleep" ListCommand Command = "list" SellCommand Command = "sell" BuyCommand Command = "buy" NoopCommand Command = "noop" )
type Output ¶
type Output struct { Buffer *Buffer Status Status MessageToRequestCreator string MessageToTarget string MessageToObservers string }
Click to show internal directories.
Click to hide internal directories.