Class: Game_Battler Deprecated

Inherits:
Object show all
Defined in:
scripts/00600 Script_RMXP/00600 Game_Battler.rb

Overview

Deprecated.

No longer used in its original use.

Direct Known Subclasses

Game_Actor, Game_Enemy

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeGame_Battler


● オブジェクト初期化




25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# File 'scripts/00600 Script_RMXP/00600 Game_Battler.rb', line 25

def initialize
  @battler_name = nil.to_s
  @battler_hue = 0
  @hp = 0
  @sp = 0
  @states = []
  @states_turn = {}
  @hidden = false
  @damage = nil
  @critical = false
  @animation_id = 0
  @animation_hit = false
  @white_flash = false
  @blink = false
end

Instance Attribute Details

#animation_hit

アニメーション ヒットフラグ



19
20
21
# File 'scripts/00600 Script_RMXP/00600 Game_Battler.rb', line 19

def animation_hit
  @animation_hit
end

#animation_id

アニメーション ID



18
19
20
# File 'scripts/00600 Script_RMXP/00600 Game_Battler.rb', line 18

def animation_id
  @animation_id
end

#battler_hue (readonly)

バトラー 色相



11
12
13
# File 'scripts/00600 Script_RMXP/00600 Game_Battler.rb', line 11

def battler_hue
  @battler_hue
end

#battler_name (readonly)


● 公開インスタンス変数




10
11
12
# File 'scripts/00600 Script_RMXP/00600 Game_Battler.rb', line 10

def battler_name
  @battler_name
end

明滅フラグ



21
22
23
# File 'scripts/00600 Script_RMXP/00600 Game_Battler.rb', line 21

def blink
  @blink
end

#critical

クリティカルフラグ



17
18
19
# File 'scripts/00600 Script_RMXP/00600 Game_Battler.rb', line 17

def critical
  @critical
end

#damage

ダメージ値



16
17
18
# File 'scripts/00600 Script_RMXP/00600 Game_Battler.rb', line 16

def damage
  @damage
end

#hidden

隠れフラグ



15
16
17
# File 'scripts/00600 Script_RMXP/00600 Game_Battler.rb', line 15

def hidden
  @hidden
end

#hp

HP



12
13
14
# File 'scripts/00600 Script_RMXP/00600 Game_Battler.rb', line 12

def hp
  @hp
end

#sp

SP



13
14
15
# File 'scripts/00600 Script_RMXP/00600 Game_Battler.rb', line 13

def sp
  @sp
end

#states (readonly)

ステート



14
15
16
# File 'scripts/00600 Script_RMXP/00600 Game_Battler.rb', line 14

def states
  @states
end

#white_flash

白フラッシュフラグ



20
21
22
# File 'scripts/00600 Script_RMXP/00600 Game_Battler.rb', line 20

def white_flash
  @white_flash
end

Instance Method Details

#agi



49
50
51
# File 'scripts/00600 Script_RMXP/00600 Game_Battler.rb', line 49

def agi
  return 1
end

#atk



61
62
63
# File 'scripts/00600 Script_RMXP/00600 Game_Battler.rb', line 61

def atk
  return 1
end

#dead?Boolean

Returns:

  • (Boolean)


85
86
87
# File 'scripts/00600 Script_RMXP/00600 Game_Battler.rb', line 85

def dead?
  return false
end

#dex



45
46
47
# File 'scripts/00600 Script_RMXP/00600 Game_Battler.rb', line 45

def dex
  return 1
end

#eva



73
74
75
# File 'scripts/00600 Script_RMXP/00600 Game_Battler.rb', line 73

def eva
  return 1
end

#exist?Boolean

Returns:

  • (Boolean)


89
90
91
# File 'scripts/00600 Script_RMXP/00600 Game_Battler.rb', line 89

def exist?
  return true
end

#hit



57
58
59
# File 'scripts/00600 Script_RMXP/00600 Game_Battler.rb', line 57

def hit
  return 0
end

#int



53
54
55
# File 'scripts/00600 Script_RMXP/00600 Game_Battler.rb', line 53

def int
  return 1
end

#mdef



69
70
71
# File 'scripts/00600 Script_RMXP/00600 Game_Battler.rb', line 69

def mdef
  return 1
end

#pdef



65
66
67
# File 'scripts/00600 Script_RMXP/00600 Game_Battler.rb', line 65

def pdef
  return 1
end

#str



41
42
43
# File 'scripts/00600 Script_RMXP/00600 Game_Battler.rb', line 41

def str
  return 1
end