Class: RPG::System

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

Instance Method Summary collapse

Constructor Details

#initializeSystem

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

#airshipObject

Returns the value of attribute airship.



59
60
61
# File 'lib/rpg/system.rb', line 59

def airship
  @airship
end

#armor_typesObject

Returns the value of attribute armor_types.



53
54
55
# File 'lib/rpg/system.rb', line 53

def armor_types
  @armor_types
end

#battle_bgmObject

Returns the value of attribute battle_bgm.



72
73
74
# File 'lib/rpg/system.rb', line 72

def battle_bgm
  @battle_bgm
end

#battle_end_meObject

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

#battleback1_nameObject

Returns the value of attribute battleback1_name.



82
83
84
# File 'lib/rpg/system.rb', line 82

def battleback1_name
  @battleback1_name
end

#battleback2_nameObject

Returns the value of attribute battleback2_name.



83
84
85
# File 'lib/rpg/system.rb', line 83

def battleback2_name
  @battleback2_name
end

#battler_hueObject

Returns the value of attribute battler_hue.



85
86
87
# File 'lib/rpg/system.rb', line 85

def battler_hue
  @battler_hue
end

#battler_nameObject

Returns the value of attribute battler_name.



84
85
86
# File 'lib/rpg/system.rb', line 84

def battler_name
  @battler_name
end

#boatObject

Returns the value of attribute boat.



57
58
59
# File 'lib/rpg/system.rb', line 57

def boat
  @boat
end

#currency_unitObject

Returns the value of attribute currency_unit.



50
51
52
# File 'lib/rpg/system.rb', line 50

def currency_unit
  @currency_unit
end

#edit_map_idObject

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

#elementsObject

Returns the value of attribute elements.



54
55
56
# File 'lib/rpg/system.rb', line 54

def elements
  @elements
end

#game_titleObject

Returns the value of attribute game_title.



46
47
48
# File 'lib/rpg/system.rb', line 46

def game_title
  @game_title
end

#gameover_meObject

Returns the value of attribute gameover_me.



74
75
76
# File 'lib/rpg/system.rb', line 74

def gameover_me
  @gameover_me
end

#japaneseObject

Returns the value of attribute japanese.



48
49
50
# File 'lib/rpg/system.rb', line 48

def japanese
  @japanese
end

#opt_display_tpObject

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

#opt_draw_titleObject

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

#opt_extra_expObject

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

#opt_floor_deathObject

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

#opt_followersObject

Returns the value of attribute opt_followers.



65
66
67
# File 'lib/rpg/system.rb', line 65

def opt_followers
  @opt_followers
end

#opt_slip_deathObject

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

#opt_transparentObject

Returns the value of attribute opt_transparent.



64
65
66
# File 'lib/rpg/system.rb', line 64

def opt_transparent
  @opt_transparent
end

#opt_use_midiObject

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

#party_membersObject

Returns the value of attribute party_members.



49
50
51
# File 'lib/rpg/system.rb', line 49

def party_members
  @party_members
end

#shipObject

Returns the value of attribute ship.



58
59
60
# File 'lib/rpg/system.rb', line 58

def ship
  @ship
end

#skill_typesObject

Returns the value of attribute skill_types.



51
52
53
# File 'lib/rpg/system.rb', line 51

def skill_types
  @skill_types
end

#soundsObject

Returns the value of attribute sounds.



75
76
77
# File 'lib/rpg/system.rb', line 75

def sounds
  @sounds
end

#start_map_idObject

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

#start_xObject

Returns the value of attribute start_x.



79
80
81
# File 'lib/rpg/system.rb', line 79

def start_x
  @start_x
end

#start_yObject

Returns the value of attribute start_y.



80
81
82
# File 'lib/rpg/system.rb', line 80

def start_y
  @start_y
end

#switchesObject

Returns the value of attribute switches.



55
56
57
# File 'lib/rpg/system.rb', line 55

def switches
  @switches
end

#termsObject

Returns the value of attribute terms.



81
82
83
# File 'lib/rpg/system.rb', line 81

def terms
  @terms
end

#test_battlersObject

Returns the value of attribute test_battlers.



76
77
78
# File 'lib/rpg/system.rb', line 76

def test_battlers
  @test_battlers
end

#test_troop_idObject

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

#title1_nameObject

Returns the value of attribute title1_name.



60
61
62
# File 'lib/rpg/system.rb', line 60

def title1_name
  @title1_name
end

#title2_nameObject

Returns the value of attribute title2_name.



61
62
63
# File 'lib/rpg/system.rb', line 61

def title2_name
  @title2_name
end

#title_bgmObject

Returns the value of attribute title_bgm.



71
72
73
# File 'lib/rpg/system.rb', line 71

def title_bgm
  @title_bgm
end

#variablesObject

Returns the value of attribute variables.



56
57
58
# File 'lib/rpg/system.rb', line 56

def variables
  @variables
end

#version_idObject

Returns the value of attribute version_id.



47
48
49
# File 'lib/rpg/system.rb', line 47

def version_id
  @version_id
end

#weapon_typesObject

Returns the value of attribute weapon_types.



52
53
54
# File 'lib/rpg/system.rb', line 52

def weapon_types
  @weapon_types
end

#window_toneObject

Returns the value of attribute window_tone.



70
71
72
# File 'lib/rpg/system.rb', line 70

def window_tone
  @window_tone
end