Class: RPG::System
- Inherits:
-
Object
- Object
- RPG::System
- Defined in:
- lib/rpg/system.rb,
lib/rpg/system/terms.rb,
lib/rpg/system/vehicle.rb,
lib/rpg/system/test_battler.rb
Defined Under Namespace
Classes: Terms, TestBattler, Vehicle
Instance Attribute Summary (collapse)
-
- (Object) airship
Returns the value of attribute airship.
-
- (Object) armor_types
Returns the value of attribute armor_types.
-
- (Object) battle_bgm
Returns the value of attribute battle_bgm.
-
- (Object) battle_end_me
Returns the value of attribute battle_end_me.
-
- (Object) battleback1_name
Returns the value of attribute battleback1_name.
-
- (Object) battleback2_name
Returns the value of attribute battleback2_name.
-
- (Object) battler_hue
Returns the value of attribute battler_hue.
-
- (Object) battler_name
Returns the value of attribute battler_name.
-
- (Object) boat
Returns the value of attribute boat.
-
- (Object) currency_unit
Returns the value of attribute currency_unit.
-
- (Object) edit_map_id
Returns the value of attribute edit_map_id.
-
- (Object) elements
Returns the value of attribute elements.
-
- (Object) game_title
Returns the value of attribute game_title.
-
- (Object) gameover_me
Returns the value of attribute gameover_me.
-
- (Object) japanese
Returns the value of attribute japanese.
-
- (Object) opt_display_tp
Returns the value of attribute opt_display_tp.
-
- (Object) opt_draw_title
Returns the value of attribute opt_draw_title.
-
- (Object) opt_extra_exp
Returns the value of attribute opt_extra_exp.
-
- (Object) opt_floor_death
Returns the value of attribute opt_floor_death.
-
- (Object) opt_followers
Returns the value of attribute opt_followers.
-
- (Object) opt_slip_death
Returns the value of attribute opt_slip_death.
-
- (Object) opt_transparent
Returns the value of attribute opt_transparent.
-
- (Object) opt_use_midi
Returns the value of attribute opt_use_midi.
-
- (Object) party_members
Returns the value of attribute party_members.
-
- (Object) ship
Returns the value of attribute ship.
-
- (Object) skill_types
Returns the value of attribute skill_types.
-
- (Object) sounds
Returns the value of attribute sounds.
-
- (Object) start_map_id
Returns the value of attribute start_map_id.
-
- (Object) start_x
Returns the value of attribute start_x.
-
- (Object) start_y
Returns the value of attribute start_y.
-
- (Object) switches
Returns the value of attribute switches.
-
- (Object) terms
Returns the value of attribute terms.
-
- (Object) test_battlers
Returns the value of attribute test_battlers.
-
- (Object) test_troop_id
Returns the value of attribute test_troop_id.
-
- (Object) title1_name
Returns the value of attribute title1_name.
-
- (Object) title2_name
Returns the value of attribute title2_name.
-
- (Object) title_bgm
Returns the value of attribute title_bgm.
-
- (Object) variables
Returns the value of attribute variables.
-
- (Object) version_id
Returns the value of attribute version_id.
-
- (Object) weapon_types
Returns the value of attribute weapon_types.
-
- (Object) window_tone
Returns the value of attribute window_tone.
Instance Method Summary (collapse)
-
- (System) initialize
constructor
A new instance of System.
Constructor Details
- (System) initialize
Returns a new instance of System
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 |
# File 'lib/rpg/system.rb', line 3 def initialize @game_title = '' @version_id = 0 @japanese = true @party_members = [1] @currency_unit = '' @elements = [nil, ''] @skill_types = [nil, ''] @weapon_types = [nil, ''] @armor_types = [nil, ''] @switches = [nil, ''] @variables = [nil, ''] @boat = RPG::System::Vehicle.new @ship = RPG::System::Vehicle.new @airship = RPG::System::Vehicle.new @title1_name = '' @title2_name = '' @opt_draw_title = true @opt_use_midi = false @opt_transparent = false @opt_followers = true @opt_slip_death = false @opt_floor_death = false @opt_display_tp = true @opt_extra_exp = false @window_tone = Tone.new(0,0,0) @title_bgm = RPG::BGM.new @battle_bgm = RPG::BGM.new @battle_end_me = RPG::ME.new @gameover_me = RPG::ME.new @sounds = Array.new(24) { RPG::SE.new } @test_battlers = [] @test_troop_id = 1 @start_map_id = 1 @start_x = 0 @start_y = 0 @terms = RPG::System::Terms.new @battleback1_name = '' @battleback2_name = '' @battler_name = '' @battler_hue = 0 @edit_map_id = 1 end |
Instance Attribute Details
- (Object) airship
Returns the value of attribute airship
59 60 61 |
# File 'lib/rpg/system.rb', line 59 def airship @airship end |
- (Object) armor_types
Returns the value of attribute armor_types
53 54 55 |
# File 'lib/rpg/system.rb', line 53 def armor_types @armor_types end |
- (Object) battle_bgm
Returns the value of attribute battle_bgm
72 73 74 |
# File 'lib/rpg/system.rb', line 72 def battle_bgm @battle_bgm end |
- (Object) battle_end_me
Returns the value of attribute battle_end_me
73 74 75 |
# File 'lib/rpg/system.rb', line 73 def battle_end_me @battle_end_me end |
- (Object) battleback1_name
Returns the value of attribute battleback1_name
82 83 84 |
# File 'lib/rpg/system.rb', line 82 def battleback1_name @battleback1_name end |
- (Object) battleback2_name
Returns the value of attribute battleback2_name
83 84 85 |
# File 'lib/rpg/system.rb', line 83 def battleback2_name @battleback2_name end |
- (Object) battler_hue
Returns the value of attribute battler_hue
85 86 87 |
# File 'lib/rpg/system.rb', line 85 def battler_hue @battler_hue end |
- (Object) battler_name
Returns the value of attribute battler_name
84 85 86 |
# File 'lib/rpg/system.rb', line 84 def battler_name @battler_name end |
- (Object) boat
Returns the value of attribute boat
57 58 59 |
# File 'lib/rpg/system.rb', line 57 def boat @boat end |
- (Object) currency_unit
Returns the value of attribute currency_unit
50 51 52 |
# File 'lib/rpg/system.rb', line 50 def currency_unit @currency_unit end |
- (Object) edit_map_id
Returns the value of attribute edit_map_id
86 87 88 |
# File 'lib/rpg/system.rb', line 86 def edit_map_id @edit_map_id end |
- (Object) elements
Returns the value of attribute elements
54 55 56 |
# File 'lib/rpg/system.rb', line 54 def elements @elements end |
- (Object) game_title
Returns the value of attribute game_title
46 47 48 |
# File 'lib/rpg/system.rb', line 46 def game_title @game_title end |
- (Object) gameover_me
Returns the value of attribute gameover_me
74 75 76 |
# File 'lib/rpg/system.rb', line 74 def gameover_me @gameover_me end |
- (Object) japanese
Returns the value of attribute japanese
48 49 50 |
# File 'lib/rpg/system.rb', line 48 def japanese @japanese end |
- (Object) opt_display_tp
Returns the value of attribute opt_display_tp
68 69 70 |
# File 'lib/rpg/system.rb', line 68 def opt_display_tp @opt_display_tp end |
- (Object) opt_draw_title
Returns the value of attribute opt_draw_title
62 63 64 |
# File 'lib/rpg/system.rb', line 62 def opt_draw_title @opt_draw_title end |
- (Object) opt_extra_exp
Returns the value of attribute opt_extra_exp
69 70 71 |
# File 'lib/rpg/system.rb', line 69 def opt_extra_exp @opt_extra_exp end |
- (Object) opt_floor_death
Returns the value of attribute opt_floor_death
67 68 69 |
# File 'lib/rpg/system.rb', line 67 def opt_floor_death @opt_floor_death end |
- (Object) opt_followers
Returns the value of attribute opt_followers
65 66 67 |
# File 'lib/rpg/system.rb', line 65 def opt_followers @opt_followers end |
- (Object) opt_slip_death
Returns the value of attribute opt_slip_death
66 67 68 |
# File 'lib/rpg/system.rb', line 66 def opt_slip_death @opt_slip_death end |
- (Object) opt_transparent
Returns the value of attribute opt_transparent
64 65 66 |
# File 'lib/rpg/system.rb', line 64 def opt_transparent @opt_transparent end |
- (Object) opt_use_midi
Returns the value of attribute opt_use_midi
63 64 65 |
# File 'lib/rpg/system.rb', line 63 def opt_use_midi @opt_use_midi end |
- (Object) party_members
Returns the value of attribute party_members
49 50 51 |
# File 'lib/rpg/system.rb', line 49 def party_members @party_members end |
- (Object) ship
Returns the value of attribute ship
58 59 60 |
# File 'lib/rpg/system.rb', line 58 def ship @ship end |
- (Object) skill_types
Returns the value of attribute skill_types
51 52 53 |
# File 'lib/rpg/system.rb', line 51 def skill_types @skill_types end |
- (Object) sounds
Returns the value of attribute sounds
75 76 77 |
# File 'lib/rpg/system.rb', line 75 def sounds @sounds end |
- (Object) start_map_id
Returns the value of attribute start_map_id
78 79 80 |
# File 'lib/rpg/system.rb', line 78 def start_map_id @start_map_id end |
- (Object) start_x
Returns the value of attribute start_x
79 80 81 |
# File 'lib/rpg/system.rb', line 79 def start_x @start_x end |
- (Object) start_y
Returns the value of attribute start_y
80 81 82 |
# File 'lib/rpg/system.rb', line 80 def start_y @start_y end |
- (Object) switches
Returns the value of attribute switches
55 56 57 |
# File 'lib/rpg/system.rb', line 55 def switches @switches end |
- (Object) terms
Returns the value of attribute terms
81 82 83 |
# File 'lib/rpg/system.rb', line 81 def terms @terms end |
- (Object) test_battlers
Returns the value of attribute test_battlers
76 77 78 |
# File 'lib/rpg/system.rb', line 76 def test_battlers @test_battlers end |
- (Object) test_troop_id
Returns the value of attribute test_troop_id
77 78 79 |
# File 'lib/rpg/system.rb', line 77 def test_troop_id @test_troop_id end |
- (Object) title1_name
Returns the value of attribute title1_name
60 61 62 |
# File 'lib/rpg/system.rb', line 60 def title1_name @title1_name end |
- (Object) title2_name
Returns the value of attribute title2_name
61 62 63 |
# File 'lib/rpg/system.rb', line 61 def title2_name @title2_name end |
- (Object) title_bgm
Returns the value of attribute title_bgm
71 72 73 |
# File 'lib/rpg/system.rb', line 71 def title_bgm @title_bgm end |
- (Object) variables
Returns the value of attribute variables
56 57 58 |
# File 'lib/rpg/system.rb', line 56 def variables @variables end |
- (Object) version_id
Returns the value of attribute version_id
47 48 49 |
# File 'lib/rpg/system.rb', line 47 def version_id @version_id end |
- (Object) weapon_types
Returns the value of attribute weapon_types
52 53 54 |
# File 'lib/rpg/system.rb', line 52 def weapon_types @weapon_types end |
- (Object) window_tone
Returns the value of attribute window_tone
70 71 72 |
# File 'lib/rpg/system.rb', line 70 def window_tone @window_tone end |