MonsterMaze::Monster
Inherits MonsterMaze::Movable < Reference < Object
Constants
AnimationFrames = 1
AttackSpeed = Speed * 3
CollisionRadius = 16
Damage = 5
EmptyString = ""
NextAttackDurationMax = 500
NextAttackDurationMin = 300
Speed = 256
Constructors
new(row = 0, col = 0)
SourceInstance methods
add_animation(name, row, flip_horizontal = false, flip_vertical = false)
Sourceanimation_frames
Sourceanimations
Sourceattack!
Sourceattack_speed
Sourceattacked?
Sourceattacking?
Sourcecollision_radius
Sourcedamage
Sourcedraw(window : SF::RenderWindow)
Sourcefollow_player!
Sourcefollow_range?(player : Player)
Sourcefollowing?
Sourceinit_animations
Sourcemove_change_from_distance(p_value, value, p_dist, inner_threshold)
Sourcemove_towards(p_cx, p_cy, p_dist, inner_threshold)
Sourcenext_attack_timer
Sourceplay_animation
Sourceready_to_attack?
Sourcespeed
Sourcesprite_sheet
Sourcestop_attacking!
Sourceupdate(frame_time)
Sourceupdate_following(frame_time, p_cx, p_cy, p_dist, collidable_tiles, movables)
Source