class

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)
Source

Instance methods

add_animation(name, row, flip_horizontal = false, flip_vertical = false)
Source
animation_frames
Source
animations
Source
attack!
Source
attack_speed
Source
attacked?
Source
attacking?
Source
collision_radius
Source
damage
Source
draw(window : SF::RenderWindow)
Source
follow_player!
Source
follow_range?(player : Player)
Source
following?
Source
init_animations
Source
move_change_from_distance(p_value, value, p_dist, inner_threshold)
Source
move_towards(p_cx, p_cy, p_dist, inner_threshold)
Source
next_attack_timer
Source
play_animation
Source
ready_to_attack?
Source
speed
Source
sprite_sheet
Source
stop_attacking!
Source
update(frame_time)
Source
update_following(frame_time, p_cx, p_cy, p_dist, collidable_tiles, movables)
Source