Open Sidebar
Close Sidebar
CrystalDoc.info
Source code
Shards.info
dungeon
master
Direction
Dungeon
Animation
Arrow
ArrowItem
BasicEnemy
Bomb
BombItem
Bow
Box
Camera
Chest
Door
Enemy
Entity
FullHeart
Game
HalfHeart
HeadsUpDisplay
Item
ItemPool
Key
Level
Level1
Level2
Level3
LivingEntity
LockedChest
Message
MovingEnemy
Player
Room
RoomA
RoomB
RoomC
SoldierFollowing
SoldierGuarding
SoldierMoving
SpikyFloor
Sprite
Sword
Timer
TypedMessage
Wall
Weapon
Location
Generated using Crystal 1.10.1
2024-02-25 03:14:07 UTC
class
Dungeon::
Timer
Dungeon::Timer
Reference
Object
Defined in:
dungeon/timer.cr
Constructors
.new
(length : Float64 | Float32 | Int32)
Instance Method Summary
#active?
: Bool
#done?
#increase
(delta_t : Float32)
#percentage
#reset
#restart
#start
#time
: Float32
Constructor Detail
def self.
new
(length : Float64 | Float32 | Int32)
#
[
View source
]
Instance Method Detail
def
active?
: Bool
#
[
View source
]
def
done?
#
[
View source
]
def
increase
(delta_t : Float32)
#
[
View source
]
def
percentage
#
[
View source
]
def
reset
#
[
View source
]
def
restart
#
[
View source
]
def
start
#
[
View source
]
def
time
: Float32
#
[
View source
]