Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DrawCommand ¶
type DrawCommand struct {
Position *Position
}
DrawCommand 命令执行者 DrawCommand line to
type Instructor ¶
type Instructor struct {
// contains filtered or unexported fields
}
Instructor 教官
type PathPainter ¶
type PathPainter struct {
// contains filtered or unexported fields
}
PathPainter invoke an draw command
func (*PathPainter) Append ¶
func (p *PathPainter) Append(command command)
Append new cmd PathPainter
type TurnBackCommand ¶
type TurnBackCommand struct {
// contains filtered or unexported fields
}
TurnBackCommand 向后转
type TurnLeftCommand ¶
type TurnLeftCommand struct {
// contains filtered or unexported fields
}
TurnLeftCommand 向左转
type TurnRightCommand ¶
type TurnRightCommand struct {
// contains filtered or unexported fields
}
TurnRightCommand 向右转
Click to show internal directories.
Click to hide internal directories.