Open Sidebar
Close Sidebar
CrystalDoc.info
Source code
Shards.info
works
master
Works
Allegro
Animation
Animations
AnimationData
Cell
Font
FPSDisplay
GameScene
HUDText
Init
Inventory
InventoryHUD
Item
Base
Hand
Held
Ore
Base
Coal
Copper
Iron
Stone
Plate
Base
Copper
Iron
Steel
StoneBrick
Struct
Base
Chest
Base
Iron
Steel
Wooden
Furnace
Base
Electric
Stone
Inserter
Base
Burner
Inserter
TransportBelt
Base
Express
Fast
Keys
Main
MainMenu
Map
Mouse
Button
Player
Scene
SceneManager
Screen
Sprite
Struct
Base
Chest
Base
Iron
Steel
Wooden
Furnace
Base
Electric
Stone
Inserter
Base
Burner
Inserter
TransportBelt
Base
ItemData
Express
Fast
Tile
Base
Checkered
Dirt
Ore
Base
Coal
Copper
Iron
Stone
Timer
UI
Base
ProgressBar
Built with Crystal 1.9.2
2023-10-07 18:24:55 UTC
class
Works::Timer
Works::Timer
Reference
Object
Defined in:
works/timer.cr
Constructors
.new
(duration : Time::Span, initialize_as_done =
false
)
Instance Method Summary
#done?
#duration
: Time::Span
#duration=
(duration : Time::Span)
#pause
#paused?
#percent
#restart
#start
#started?
#stop
#time_expired
Constructor Detail
def self.
new
(duration : Time::Span, initialize_as_done =
false
)
#
[
View source
]
Instance Method Detail
def
done?
#
[
View source
]
def
duration
: Time::Span
#
[
View source
]
def
duration=
(duration : Time::Span)
#
[
View source
]
def
pause
#
[
View source
]
def
paused?
#
[
View source
]
def
percent
#
[
View source
]
def
restart
#
[
View source
]
def
start
#
[
View source
]
def
started?
#
[
View source
]
def
stop
#
[
View source
]
def
time_expired
#
[
View source
]