Class: RPG::Enemy::Action

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Methods included from RgssDb::JsonableConstructor

json_create, json_new

Methods included from RgssDb::Jsonable

#as_json, #to_json

Constructor Details

#initializeAction

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

#basicObject

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_hpObject

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_levelObject

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_param1Object

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_param2Object

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_idObject

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_aObject

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_bObject

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_typeObject

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

#kindObject

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

#ratingObject

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
  @rating
end

#skill_idObject

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

Returns:

  • (Boolean)


22
23
24
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/enemy_action.rb', line 22

def skill?
  @kind == 1
end