Class: Game_Temp

Inherits:
Object
  • Object
show all
Defined in:
Game_Temp.rb

Overview

** Game_Temp


This class handles temporary data that is not included with save data.

The instance of this class is referenced by $game_temp.

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

Constructor Details

- (Game_Temp) initialize


  • Object Initialization




17
18
19
20
# File 'Game_Temp.rb', line 17

def initialize
  @common_event_id = 0
  @fade_type = 0
end

Instance Attribute Details

- (Object) common_event_id (readonly)


  • Public Instance Variables




12
13
14
# File 'Game_Temp.rb', line 12

def common_event_id
  @common_event_id
end

- (Object) fade_type

Fade Type at Player Transfer



13
14
15
# File 'Game_Temp.rb', line 13

def fade_type
  @fade_type
end

Instance Method Details

- (Object) clear_common_event


  • Clear Common Event Call Reservation




30
31
32
# File 'Game_Temp.rb', line 30

def clear_common_event
  @common_event_id = 0
end

- (Boolean) common_event_reserved?


  • Determine Reservation of Common Event Call


Returns:

  • (Boolean)


36
37
38
# File 'Game_Temp.rb', line 36

def common_event_reserved?
  @common_event_id > 0
end

- (Object) reserve_common_event(common_event_id)


  • Reserve Common Event Call




24
25
26
# File 'Game_Temp.rb', line 24

def reserve_common_event(common_event_id)
  @common_event_id = common_event_id
end

- (Object) reserved_common_event


  • Get Reserved Common Event




42
43
44
# File 'Game_Temp.rb', line 42

def reserved_common_event
  $data_common_events[@common_event_id]
end