1#ifndef NANOMMO_CLIENT_REACTIONS_H_
2#define NANOMMO_CLIENT_REACTIONS_H_
20 static constexpr float kRock = 0.3f;
27 static constexpr float kHeld = 2.0f;
30 void Hit(uint32_t monster, uint32_t player);
33 void Update(
float seconds);
36 void Apply(std::vector<Figure>& figures);
48 std::map<uint32_t, Blow> blows_;
static constexpr float kRockOut
void Apply(std::vector< Figure > &figures)
Lights up, rocks and tips the monsters, as their blows have them now.
static constexpr float kRockIn
static constexpr float kFlashTime
How long a flash takes to fade, in seconds.
void Hit(uint32_t monster, uint32_t player)
The player hit the monster, both by their ids.
static constexpr float kHeld
void Update(float seconds)
Moves each blow's reaction on.
static constexpr float kRock
static constexpr float kTumble
How far over a monster in the air tips, in radians, for each metre up.