class Phase::HealthObj
- Phase::HealthObj
- Reference
- Object
Direct Known Subclasses
Defined in:
phase/health_obj.crConstant Summary
-
CollisionDamage =
1
-
DebugHitBox =
false
-
HitColor =
SF::Color::Red
-
HitRadius =
64
-
HitSound =
SF::SoundBuffer.from_file("./assets/hit.wav")
-
MaxHealth =
100
-
UnhitColor =
SF::Color::White
Constructors
Class Method Summary
Instance Method Summary
- #bump(dx, dy, bumped_by, objs)
- #bumped? : Bool
- #collision_damage
- #distance(cx, cy, radius = 0)
- #distance(obj : HealthObj)
- #draw(window : SF::RenderWindow)
- #draw_hit_circle(window : SF::RenderWindow)
- #health : Int32
- #health_color
- #hit(damage : Int32)
- #hit?(circle : Circle)
- #hit? : Bool
- #hit_circle
- #hit_radius
- #hit_sound : SF::Sound
- #max_health
- #move(dx : Float64, dy : Float64)
- #remove? : Bool
- #reset_hit_bumped
- #rotation_from(other_x, other_y)
- #rotation_from(obj : HealthObj)
- #rotation_to(other_x, other_y)
- #rotation_to(obj : HealthObj)
- #static?
- #unhit_color
- #update(frame_time, objs : Array(HealthObj))
- #x : Float64
- #y : Float64