Class: Pacman::Arcade::Spawn

Inherits:
Data
  • Object
show all
Defined in:
lib/pacman/arcade/spawn.rb

Overview

Where a ghost lives: its starting cell and the corner it retreats to in scatter mode.

Instance Attribute Summary collapse

Instance Attribute Details

#cornerObject (readonly)

Returns the value of attribute corner

Returns:

  • (Object)

    the current value of corner



6
7
8
# File 'lib/pacman/arcade/spawn.rb', line 6

def corner
  @corner
end

#startObject (readonly)

Returns the value of attribute start

Returns:

  • (Object)

    the current value of start



6
7
8
# File 'lib/pacman/arcade/spawn.rb', line 6

def start
  @start
end