Documentation ¶
Index ¶
- type Canvas
- func (_m *Canvas) ClearScreen(c color.Color)
- func (_m *Canvas) CreateNewSprite() turtlemodel.Sprite
- func (_m *Canvas) Exit()
- func (_m *Canvas) Fill(x int, y int, c color.Color)
- func (_m *Canvas) GetHeight() int
- func (_m *Canvas) GetScreenshot() image.Image
- func (_m *Canvas) GetWidth() int
- func (_m *Canvas) PressedUserInput() *turtlemodel.UserInput
- func (_m *Canvas) SetCartesianPixel(x int, y int, c color.Color)
- func (_m *Canvas) SetPixel(x int, y int, c color.Color)
- func (_m *Canvas) SubscribeToJustPressedUserInput() chan *turtlemodel.UserInput
- func (_m *Canvas) UnSubscribeToJustPressedUserInput(in chan *turtlemodel.UserInput)
- type Sprite
- func (_m *Sprite) Get() turtlemodel.SpriteInfo
- func (_m *Sprite) Set(visible bool, cartX float64, cartY float64, radianAngle float64)
- func (_m *Sprite) SetPosition(cartX float64, cartY float64)
- func (_m *Sprite) SetRotation(radianAngle float64)
- func (_m *Sprite) SetScale(scale float64)
- func (_m *Sprite) SetSpriteImage(_a0 image.Image)
- func (_m *Sprite) SetSpriteImageArrow()
- func (_m *Sprite) SetSpriteImageTurtle()
- func (_m *Sprite) SetVisible(visible bool)
- type Turtle
- func (_m *Turtle) Angle(angle float64)
- func (_m *Turtle) B(distance float64)
- func (_m *Turtle) Backward(distance float64)
- func (_m *Turtle) Circle(radius float64, angleAmountToDraw float64, steps int)
- func (_m *Turtle) Clone() turtlemodel.Turtle
- func (_m *Turtle) Color(c color.Color)
- func (_m *Turtle) CompassMode()
- func (_m *Turtle) DegreesMode()
- func (_m *Turtle) Dot(size float64)
- func (_m *Turtle) F(distance float64)
- func (_m *Turtle) Fill(c color.Color)
- func (_m *Turtle) Forward(distance float64)
- func (_m *Turtle) GetAngle() float64
- func (_m *Turtle) GetAngleMode() turtlemodel.AngleMode
- func (_m *Turtle) GetColor() color.Color
- func (_m *Turtle) GetPos() (float64, float64)
- func (_m *Turtle) GetSize() float64
- func (_m *Turtle) GetSpeed() float64
- func (_m *Turtle) GoTo(x float64, y float64)
- func (_m *Turtle) HideTurtle()
- func (_m *Turtle) IsPenDown() bool
- func (_m *Turtle) L(angle float64)
- func (_m *Turtle) Left(angle float64)
- func (_m *Turtle) Off()
- func (_m *Turtle) On()
- func (_m *Turtle) PD()
- func (_m *Turtle) PU()
- func (_m *Turtle) PanL(distance float64)
- func (_m *Turtle) PanLeftward(distance float64)
- func (_m *Turtle) PanR(distance float64)
- func (_m *Turtle) PanRightward(distance float64)
- func (_m *Turtle) PenDown()
- func (_m *Turtle) PenUp()
- func (_m *Turtle) PointToward(x float64, y float64)
- func (_m *Turtle) R(angle float64)
- func (_m *Turtle) RadiansMode()
- func (_m *Turtle) Right(angle float64)
- func (_m *Turtle) ShapeAsArrow()
- func (_m *Turtle) ShapeAsImage(in image.Image)
- func (_m *Turtle) ShapeAsTurtle()
- func (_m *Turtle) ShapeScale(scale float64)
- func (_m *Turtle) ShowTurtle()
- func (_m *Turtle) Size(size float64)
- func (_m *Turtle) Speed(PixelsPerSecond float64)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Canvas ¶
Canvas is an autogenerated mock type for the Canvas type
func NewCanvas ¶
NewCanvas creates a new instance of Canvas. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*Canvas) ClearScreen ¶
ClearScreen provides a mock function with given fields: c
func (*Canvas) CreateNewSprite ¶
func (_m *Canvas) CreateNewSprite() turtlemodel.Sprite
CreateNewSprite provides a mock function with given fields:
func (*Canvas) GetScreenshot ¶
GetScreenshot provides a mock function with given fields:
func (*Canvas) PressedUserInput ¶
func (_m *Canvas) PressedUserInput() *turtlemodel.UserInput
PressedUserInput provides a mock function with given fields:
func (*Canvas) SetCartesianPixel ¶
SetCartesianPixel provides a mock function with given fields: x, y, c
func (*Canvas) SubscribeToJustPressedUserInput ¶
func (_m *Canvas) SubscribeToJustPressedUserInput() chan *turtlemodel.UserInput
SubscribeToJustPressedUserInput provides a mock function with given fields:
func (*Canvas) UnSubscribeToJustPressedUserInput ¶
func (_m *Canvas) UnSubscribeToJustPressedUserInput(in chan *turtlemodel.UserInput)
UnSubscribeToJustPressedUserInput provides a mock function with given fields: in
type Sprite ¶
Sprite is an autogenerated mock type for the Sprite type
func NewSprite ¶
NewSprite creates a new instance of Sprite. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*Sprite) Get ¶ added in v0.9.0
func (_m *Sprite) Get() turtlemodel.SpriteInfo
Get provides a mock function with given fields:
func (*Sprite) Set ¶
Set provides a mock function with given fields: visible, cartX, cartY, radianAngle
func (*Sprite) SetPosition ¶
SetPosition provides a mock function with given fields: cartX, cartY
func (*Sprite) SetRotation ¶
SetRotation provides a mock function with given fields: radianAngle
func (*Sprite) SetSpriteImage ¶
SetSpriteImage provides a mock function with given fields: _a0
func (*Sprite) SetSpriteImageArrow ¶
func (_m *Sprite) SetSpriteImageArrow()
SetSpriteImageArrow provides a mock function with given fields:
func (*Sprite) SetSpriteImageTurtle ¶
func (_m *Sprite) SetSpriteImageTurtle()
SetSpriteImageTurtle provides a mock function with given fields:
func (*Sprite) SetVisible ¶
SetVisible provides a mock function with given fields: visible
type Turtle ¶
Turtle is an autogenerated mock type for the Turtle type
func NewTurtle ¶
NewTurtle creates a new instance of Turtle. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*Turtle) Circle ¶
Circle provides a mock function with given fields: radius, angleAmountToDraw, steps
func (*Turtle) Clone ¶ added in v0.9.0
func (_m *Turtle) Clone() turtlemodel.Turtle
Clone provides a mock function with given fields:
func (*Turtle) CompassMode ¶
func (_m *Turtle) CompassMode()
CompassMode provides a mock function with given fields:
func (*Turtle) DegreesMode ¶
func (_m *Turtle) DegreesMode()
DegreesMode provides a mock function with given fields:
func (*Turtle) GetAngleMode ¶
func (_m *Turtle) GetAngleMode() turtlemodel.AngleMode
GetAngleMode provides a mock function with given fields:
func (*Turtle) HideTurtle ¶
func (_m *Turtle) HideTurtle()
HideTurtle provides a mock function with given fields:
func (*Turtle) PanLeftward ¶
PanLeftward provides a mock function with given fields: distance
func (*Turtle) PanRightward ¶
PanRightward provides a mock function with given fields: distance
func (*Turtle) PenDown ¶
func (_m *Turtle) PenDown()
PenDown provides a mock function with given fields:
func (*Turtle) PointToward ¶
PointToward provides a mock function with given fields: x, y
func (*Turtle) RadiansMode ¶
func (_m *Turtle) RadiansMode()
RadiansMode provides a mock function with given fields:
func (*Turtle) ShapeAsArrow ¶
func (_m *Turtle) ShapeAsArrow()
ShapeAsArrow provides a mock function with given fields:
func (*Turtle) ShapeAsImage ¶
ShapeAsImage provides a mock function with given fields: in
func (*Turtle) ShapeAsTurtle ¶
func (_m *Turtle) ShapeAsTurtle()
ShapeAsTurtle provides a mock function with given fields:
func (*Turtle) ShapeScale ¶
ShapeScale provides a mock function with given fields: scale
func (*Turtle) ShowTurtle ¶
func (_m *Turtle) ShowTurtle()
ShowTurtle provides a mock function with given fields: