Class: Termfront::DemoPlayer::DemoActor
- Inherits:
-
Struct
- Object
- Struct
- Termfront::DemoPlayer::DemoActor
- Defined in:
- lib/termfront/demo_player.rb
Instance Attribute Summary collapse
-
#alive ⇒ Object
Returns the value of attribute alive.
-
#hp ⇒ Object
Returns the value of attribute hp.
-
#max_hp ⇒ Object
Returns the value of attribute max_hp.
-
#sprite_id ⇒ Object
Returns the value of attribute sprite_id.
-
#x ⇒ Object
Returns the value of attribute x.
-
#y ⇒ Object
Returns the value of attribute y.
Instance Attribute Details
#alive ⇒ Object
Returns the value of attribute alive
5 6 7 |
# File 'lib/termfront/demo_player.rb', line 5 def alive @alive end |
#hp ⇒ Object
Returns the value of attribute hp
5 6 7 |
# File 'lib/termfront/demo_player.rb', line 5 def hp @hp end |
#max_hp ⇒ Object
Returns the value of attribute max_hp
5 6 7 |
# File 'lib/termfront/demo_player.rb', line 5 def max_hp @max_hp end |
#sprite_id ⇒ Object
Returns the value of attribute sprite_id
5 6 7 |
# File 'lib/termfront/demo_player.rb', line 5 def sprite_id @sprite_id end |
#x ⇒ Object
Returns the value of attribute x
5 6 7 |
# File 'lib/termfront/demo_player.rb', line 5 def x @x end |
#y ⇒ Object
Returns the value of attribute y
5 6 7 |
# File 'lib/termfront/demo_player.rb', line 5 def y @y end |