mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-11 07:04:59 +00:00
More or less standardised separator comments in the code
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
#===============================================================================
|
||||
# Battle scene (the visuals of the battle)
|
||||
#===============================================================================
|
||||
class Battle::Scene
|
||||
attr_accessor :abortable # For non-interactive battles, can quit immediately
|
||||
attr_reader :viewport
|
||||
@@ -73,9 +75,10 @@ class Battle::Scene
|
||||
return ret
|
||||
end
|
||||
|
||||
#=============================================================================
|
||||
# Updating and refreshing
|
||||
#=============================================================================
|
||||
#-----------------------------------------------------------------------------
|
||||
# Updating and refreshing.
|
||||
#-----------------------------------------------------------------------------
|
||||
|
||||
def pbUpdate(cw = nil)
|
||||
pbGraphicsUpdate
|
||||
pbInputUpdate
|
||||
@@ -139,17 +142,19 @@ class Battle::Scene
|
||||
end
|
||||
end
|
||||
|
||||
#=============================================================================
|
||||
# Party lineup
|
||||
#=============================================================================
|
||||
#-----------------------------------------------------------------------------
|
||||
# Party lineup.
|
||||
#-----------------------------------------------------------------------------
|
||||
|
||||
# Returns whether the party line-ups are currently coming on-screen
|
||||
def inPartyAnimation?
|
||||
return @animations.length > 0
|
||||
end
|
||||
|
||||
#=============================================================================
|
||||
# Window displays
|
||||
#=============================================================================
|
||||
#-----------------------------------------------------------------------------
|
||||
# Window displays.
|
||||
#-----------------------------------------------------------------------------
|
||||
|
||||
def pbShowWindow(windowType)
|
||||
# NOTE: If you are not using fancy graphics for the command/fight menus, you
|
||||
# will need to make "messageBox" also visible if the windowtype if
|
||||
@@ -307,9 +312,10 @@ class Battle::Scene
|
||||
end
|
||||
end
|
||||
|
||||
#=============================================================================
|
||||
# Sprites
|
||||
#=============================================================================
|
||||
#-----------------------------------------------------------------------------
|
||||
# Sprites.
|
||||
#-----------------------------------------------------------------------------
|
||||
|
||||
def pbAddSprite(id, x, y, filename, viewport)
|
||||
sprite = @sprites[id] || IconSprite.new(x, y, viewport)
|
||||
if filename
|
||||
@@ -348,9 +354,10 @@ class Battle::Scene
|
||||
pbRefresh
|
||||
end
|
||||
|
||||
#=============================================================================
|
||||
# Phases
|
||||
#=============================================================================
|
||||
#-----------------------------------------------------------------------------
|
||||
# Phases.
|
||||
#-----------------------------------------------------------------------------
|
||||
|
||||
def pbBeginCommandPhase
|
||||
@sprites["messageWindow"].text = ""
|
||||
end
|
||||
@@ -371,9 +378,10 @@ class Battle::Scene
|
||||
pbDisposeSprites
|
||||
end
|
||||
|
||||
#=============================================================================
|
||||
#-----------------------------------------------------------------------------
|
||||
#
|
||||
#=============================================================================
|
||||
#-----------------------------------------------------------------------------
|
||||
|
||||
def pbSelectBattler(idxBattler, selectMode = 1)
|
||||
numWindows = @battle.sideSizes.max * 2
|
||||
numWindows.times do |i|
|
||||
@@ -401,9 +409,10 @@ class Battle::Scene
|
||||
@lastMove[idxBattler] = 0
|
||||
end
|
||||
|
||||
#=============================================================================
|
||||
#-----------------------------------------------------------------------------
|
||||
#
|
||||
#=============================================================================
|
||||
#-----------------------------------------------------------------------------
|
||||
|
||||
# This method is called when the player wins a wild Pokémon battle.
|
||||
# This method can change the battle's music for example.
|
||||
def pbWildBattleSuccess
|
||||
|
||||
Reference in New Issue
Block a user