diff options
author | Dimitri Sokolyuk <demon@dim13.org> | 2015-05-16 14:29:20 +0200 |
---|---|---|
committer | Dimitri Sokolyuk <demon@dim13.org> | 2015-05-16 14:29:20 +0200 |
commit | b0881b54f30c60314d14e6b6812d966f1a77936b (patch) | |
tree | a5ef14bdcf5456a0a79eeb1c1beb18cb2e0b6a1d /robo.go | |
parent | 0d0c55fafb5442f0ba11055b13fa54c983bd4a4c (diff) |
Rename StepDirection
Diffstat (limited to 'robo.go')
-rw-r--r-- | robo.go | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -203,14 +203,14 @@ func Initialize(c *bufio.ReadWriter, mid int, o Orientation) { o.Orientation(c.Writer) } -type StepDirection byte +type Direction byte const ( - StepStop StepDirection = 1 << iota >> 1 - StepDown - StepUp - StepRight - StepLeft + Stop Direction = 1 << iota >> 1 + Down + Up + Right + Left ) -func (s StepDirection) Step(c *bufio.Writer) { esc(c, NUL, byte(s)) } +func (d Direction) Step(c *bufio.Writer) { esc(c, NUL, byte(d)) } |