1#ifndef NANOMMO_CLIENT_FX_H_
2#define NANOMMO_CLIENT_FX_H_
31 static constexpr float kStill = 0.05f;
46 void Update(
const std::vector<Figure>& figures,
float seconds);
50 void Hold(std::vector<Figure>& figures)
const;
64 Vector3
Shake(Vector3 camera)
const;
70 std::size_t
casts()
const {
return casts_.size(); }
81 std::optional<Vector3> target;
85 std::vector<bool> landed;
87 std::set<uint32_t> struck;
89 std::deque<std::pair<float, Vector3>> path;
98 std::vector<Beat> BlowsOf(
const skills::Skill& skill,
99 const Figure& figure)
const;
101 float Lag(
const Cast& cast)
const;
104 bool Lands(Cast& cast,
const skills::Skill& skill,
105 const std::vector<Figure>& figures)
const;
107 std::map<uint32_t, skills::Skill> skills_;
109 std::map<uint32_t, items::Weapon> weapons_;
111 std::map<uint32_t, float> ends_;
113 std::map<uint32_t, Cast> casts_;
void DrawGhosts(const Characters &characters) const
The copies fast moves leave behind them, which go over what's solid.
void DrawLight(const Camera3D &camera, const Terrain &terrain, const Atmosphere &atmosphere, const Characters &characters) const
The light, which goes over what's behind it, and blooms.
std::size_t casts() const
How many skills' fx are going.
static constexpr float kStill
Vector3 Shake(Vector3 camera) const
How far the camera's shaken, at this moment, by the skills near it.
void Hold(std::vector< Figure > &figures) const
Fx(const SkillTable &skills, Shader lit, const ItemTable &items={})
Fx & operator=(const Fx &)=delete
float Zoom() const
How far in our own camera goes, in metres, for a skill we're using.
void DrawSolid(const Terrain &terrain) const
The shards and the spikes.
static constexpr float kCatchUp
static constexpr float kGhostGap
How far apart the copies a fast move leaves are, in seconds.
void Update(const std::vector< Figure > &figures, float seconds)
The sky and the light, which the shaders read each frame.
The items in the items file, by id.