Class: Yuki::Tilemap::MapData::AnimatedTileCounter
- Defined in:
- docs/4_Systems_003_Map_Engine.rb
Overview
Class managing animated tile counters
Constant Summary collapse
- DEFAULT_COUNTERS =
Hash of default AnimatedTileCounters
{}
Class Attribute Summary collapse
-
.last_update_counter_time
Set or get the last update counter time.
Instance Attribute Summary collapse
- #count ⇒ Integer readonly
- #last_update_time ⇒ Time readonly
- #waits ⇒ Array<Integer> readonly
Class Method Summary collapse
-
.defaults(texture, texture_name) ⇒ Array<AnimatedTileCounter>
Get the default counters for the specified texture.
-
.synchronize_all
Synchronize all the counter based on their wait type.
Instance Method Summary collapse
-
#initialize(waits) ⇒ AnimatedTileCounter
constructor
Create a new animated tile counter.
-
#synchronize(animated_tile)
Synchronize itself with another animated tile.
-
#update
Update the count value.
Constructor Details
#initialize(waits) ⇒ AnimatedTileCounter
Create a new animated tile counter
1693 1694 |
# File 'docs/4_Systems_003_Map_Engine.rb', line 1693 def initialize(waits) end |
Class Attribute Details
.last_update_counter_time
Set or get the last update counter time
1704 1705 1706 |
# File 'docs/4_Systems_003_Map_Engine.rb', line 1704 def last_update_counter_time @last_update_counter_time end |
Instance Attribute Details
#count ⇒ Integer (readonly)
1686 1687 1688 |
# File 'docs/4_Systems_003_Map_Engine.rb', line 1686 def count @count end |
#last_update_time ⇒ Time (readonly)
1690 1691 1692 |
# File 'docs/4_Systems_003_Map_Engine.rb', line 1690 def last_update_time @last_update_time end |
#waits ⇒ Array<Integer> (readonly)
1688 1689 1690 |
# File 'docs/4_Systems_003_Map_Engine.rb', line 1688 def waits @waits end |
Class Method Details
.defaults(texture, texture_name) ⇒ Array<AnimatedTileCounter>
Get the default counters for the specified texture
1709 1710 |
# File 'docs/4_Systems_003_Map_Engine.rb', line 1709 def defaults(texture, texture_name) end |
.synchronize_all
Synchronize all the counter based on their wait type
1712 1713 |
# File 'docs/4_Systems_003_Map_Engine.rb', line 1712 def synchronize_all end |
Instance Method Details
#synchronize(animated_tile)
Synchronize itself with another animated tile
1700 1701 |
# File 'docs/4_Systems_003_Map_Engine.rb', line 1700 def synchronize(animated_tile) end |
#update
Update the count value
1696 1697 |
# File 'docs/4_Systems_003_Map_Engine.rb', line 1696 def update end |