Class: RubyGame::Monster::Action

Inherits:
Struct
  • Object
show all
Defined in:
lib/ruby_game/monster.rb

Instance Attribute Summary collapse

Instance Attribute Details

#directionObject

Returns the value of attribute direction

Returns:

  • (Object)

    the current value of direction



5
6
7
# File 'lib/ruby_game/monster.rb', line 5

def direction
  @direction
end

#velocityObject

Returns the value of attribute velocity

Returns:

  • (Object)

    the current value of velocity



5
6
7
# File 'lib/ruby_game/monster.rb', line 5

def velocity
  @velocity
end