Class: UI::MapPanel

Inherits:
SpriteStack show all
Defined in:
docs/01450_Systems_00003_Map_Engine.rb

Overview

Show a panel about the currently visited zone on the map

Constant Summary collapse

DELTA_Y =

Animation delta y

32

Constants inherited from SpriteStack

SpriteStack::NO_INITIAL_IMAGE

Instance Attribute Summary

Attributes inherited from SpriteStack

#animated, #data, #moving, #stack, #viewport, #x, #y

Instance Method Summary collapse

Methods inherited from SpriteStack

#[], #add_background, #add_line, #add_text, #anime, #anime_delta_set, #dispose, #each, #execute_anime, #move, #move_to, #opacity, #opacity=, #push, #push_sprite, #set_origin, #set_position, #simple_mouse_in?, #size, #stop_animation, #translate_mouse_coords, #update_animation, #update_position, #visible, #visible=, #with_cache, #with_font, #with_surface, #z, #z=

Constructor Details

#initialize(viewport, zone) ⇒ MapPanel

Create a new MapPanel

Parameters:



42
43
# File 'docs/01450_Systems_00003_Map_Engine.rb', line 42

def initialize(viewport, zone)
end

Instance Method Details

#done?Boolean

Tell if the animation is done and the pannel should be disposed

Returns:

  • (Boolean)


48
49
# File 'docs/01450_Systems_00003_Map_Engine.rb', line 48

def done?
end

#update

Update the panel animation



45
46
# File 'docs/01450_Systems_00003_Map_Engine.rb', line 45

def update
end