Class: RPG::Enemy::Action
- Inherits:
-
Object
- Object
- RPG::Enemy::Action
- Extended by:
- RgssDb::JsonableConstructor
- Includes:
- RgssDb::Jsonable
- Defined in:
- lib/rgss_db/model/rpg_maker_data/vx/rpg/enemy_action.rb,
lib/rgss_db/model/rpg_maker_data/xp/rpg/enemy_action.rb,
lib/rgss_db/model/rpg_maker_data/vx_ace/rpg/enemy_action.rb
Overview
The data class for enemy [Actions].
Instance Attribute Summary collapse
-
#basic ⇒ Object
Returns the value of attribute basic.
-
#condition_hp ⇒ Object
Returns the value of attribute condition_hp.
-
#condition_level ⇒ Object
Returns the value of attribute condition_level.
-
#condition_param1 ⇒ Object
Returns the value of attribute condition_param1.
-
#condition_param2 ⇒ Object
Returns the value of attribute condition_param2.
-
#condition_switch_id ⇒ Object
Returns the value of attribute condition_switch_id.
-
#condition_turn_a ⇒ Object
Returns the value of attribute condition_turn_a.
-
#condition_turn_b ⇒ Object
Returns the value of attribute condition_turn_b.
-
#condition_type ⇒ Object
Returns the value of attribute condition_type.
-
#kind ⇒ Object
Returns the value of attribute kind.
-
#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.
- #skill? ⇒ Boolean
Methods included from RgssDb::JsonableConstructor
Methods included from RgssDb::Jsonable
Constructor Details
#initialize ⇒ Action
Returns a new instance of Action.
12 13 14 15 16 17 18 19 20 |
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/enemy_action.rb', line 12 def initialize @kind = 0 @basic = 0 @skill_id = 1 @condition_type = 0 @condition_param1 = 0 @condition_param2 = 0 @rating = 5 end |
Instance Attribute Details
#basic ⇒ Object
Returns the value of attribute basic.
26 27 28 |
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/enemy_action.rb', line 26 def basic @basic end |
#condition_hp ⇒ Object
Returns the value of attribute condition_hp.
24 25 26 |
# File 'lib/rgss_db/model/rpg_maker_data/xp/rpg/enemy_action.rb', line 24 def condition_hp @condition_hp end |
#condition_level ⇒ Object
Returns the value of attribute condition_level.
24 25 26 |
# File 'lib/rgss_db/model/rpg_maker_data/xp/rpg/enemy_action.rb', line 24 def condition_level @condition_level end |
#condition_param1 ⇒ Object
Returns the value of attribute condition_param1.
26 27 28 |
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/enemy_action.rb', line 26 def condition_param1 @condition_param1 end |
#condition_param2 ⇒ Object
Returns the value of attribute condition_param2.
26 27 28 |
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/enemy_action.rb', line 26 def condition_param2 @condition_param2 end |
#condition_switch_id ⇒ Object
Returns the value of attribute condition_switch_id.
24 25 26 |
# File 'lib/rgss_db/model/rpg_maker_data/xp/rpg/enemy_action.rb', line 24 def condition_switch_id @condition_switch_id end |
#condition_turn_a ⇒ Object
Returns the value of attribute condition_turn_a.
24 25 26 |
# File 'lib/rgss_db/model/rpg_maker_data/xp/rpg/enemy_action.rb', line 24 def condition_turn_a @condition_turn_a end |
#condition_turn_b ⇒ Object
Returns the value of attribute condition_turn_b.
24 25 26 |
# File 'lib/rgss_db/model/rpg_maker_data/xp/rpg/enemy_action.rb', line 24 def condition_turn_b @condition_turn_b end |
#condition_type ⇒ Object
Returns the value of attribute condition_type.
26 27 28 |
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/enemy_action.rb', line 26 def condition_type @condition_type end |
#kind ⇒ Object
Returns the value of attribute kind.
26 27 28 |
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/enemy_action.rb', line 26 def kind @kind end |
#rating ⇒ Object
Returns the value of attribute rating.
26 27 28 |
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/enemy_action.rb', line 26 def @rating end |
#skill_id ⇒ Object
Returns the value of attribute skill_id.
26 27 28 |
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/enemy_action.rb', line 26 def skill_id @skill_id end |
Instance Method Details
#skill? ⇒ Boolean
22 23 24 |
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/enemy_action.rb', line 22 def skill? @kind == 1 end |