class Pacman::Ghost

model of ghost

Attributes

direction[RW]
stopped[RW]
x[RW]
y[RW]

Public Class Methods

new(x, y, direction) click to toggle source
Calls superclass method Pacman::AnimatedObject::new
# File lib/pacman/ghost.rb, line 4
def initialize(x, y, direction)
  super()
  @x, @y = x, y
  @direction = direction
  @stopped = false # used for slow ghost
end