Class: RPG::Enemy::Action
- Inherits:
-
Object
- Object
- RPG::Enemy::Action
- Defined in:
- lib/rpg/enemy/action.rb
Instance Attribute Summary collapse
-
#condition_param1 ⇒ Object
Returns the value of attribute condition_param1.
-
#condition_param2 ⇒ Object
Returns the value of attribute condition_param2.
-
#condition_type ⇒ Object
Returns the value of attribute condition_type.
-
#rating ⇒ Object
Returns the value of attribute rating.
-
#skill_id ⇒ Object
Returns the value of attribute skill_id.
Instance Method Summary collapse
-
#initialize ⇒ Action
constructor
A new instance of Action.
Constructor Details
#initialize ⇒ Action
Returns a new instance of Action.
4 5 6 7 8 9 10 |
# File 'lib/rpg/enemy/action.rb', line 4 def initialize @skill_id = 1 @condition_type = 0 @condition_param1 = 0 @condition_param2 = 0 @rating = 5 end |
Instance Attribute Details
#condition_param1 ⇒ Object
Returns the value of attribute condition_param1.
13 14 15 |
# File 'lib/rpg/enemy/action.rb', line 13 def condition_param1 @condition_param1 end |
#condition_param2 ⇒ Object
Returns the value of attribute condition_param2.
14 15 16 |
# File 'lib/rpg/enemy/action.rb', line 14 def condition_param2 @condition_param2 end |
#condition_type ⇒ Object
Returns the value of attribute condition_type.
12 13 14 |
# File 'lib/rpg/enemy/action.rb', line 12 def condition_type @condition_type end |
#rating ⇒ Object
Returns the value of attribute rating.
15 16 17 |
# File 'lib/rpg/enemy/action.rb', line 15 def @rating end |
#skill_id ⇒ Object
Returns the value of attribute skill_id.
11 12 13 |
# File 'lib/rpg/enemy/action.rb', line 11 def skill_id @skill_id end |