Class: Termfront::DemoPlayer::DemoActor

Inherits:
Struct
  • Object
show all
Defined in:
lib/termfront/demo_player.rb

Instance Attribute Summary collapse

Instance Attribute Details

#aliveObject

Returns the value of attribute alive

Returns:

  • (Object)

    the current value of alive



5
6
7
# File 'lib/termfront/demo_player.rb', line 5

def alive
  @alive
end

#hpObject

Returns the value of attribute hp

Returns:

  • (Object)

    the current value of hp



5
6
7
# File 'lib/termfront/demo_player.rb', line 5

def hp
  @hp
end

#max_hpObject

Returns the value of attribute max_hp

Returns:

  • (Object)

    the current value of max_hp



5
6
7
# File 'lib/termfront/demo_player.rb', line 5

def max_hp
  @max_hp
end

#sprite_idObject

Returns the value of attribute sprite_id

Returns:

  • (Object)

    the current value of sprite_id



5
6
7
# File 'lib/termfront/demo_player.rb', line 5

def sprite_id
  @sprite_id
end

#xObject

Returns the value of attribute x

Returns:

  • (Object)

    the current value of x



5
6
7
# File 'lib/termfront/demo_player.rb', line 5

def x
  @x
end

#yObject

Returns the value of attribute y

Returns:

  • (Object)

    the current value of y



5
6
7
# File 'lib/termfront/demo_player.rb', line 5

def y
  @y
end