Nimbin[12]?Games / Entropie / entropie/src/people/condition.h

Entropie git · main

Entropie festival game; first steps

sdl c game entropie cmake · first commit 2026-10-10 · last commit 2026-11-02 (18 hours ago) · synced 10 hours ago

C 88.5% Markdown 9.1% GLSL 2.3%
git clone https://git.christianimmanuel.de/games/Entropie.gitwget https://git.christianimmanuel.de/games/Entropie/archive/Entropie.tar.gz
entropie/src/people/condition.h 843 B · 24 lines raw
#ifndef PEOPLE_CONDITION_H
#define PEOPLE_CONDITION_H

/*
 * How a person is doing, and how it shows: drunkenness (wobbly steps,
 * burps, passing out and sleeping it off), and the mood their body shows
 * (their temperament, nudged by drink and by who is near).
 */

struct Object;

/* Before the hands and the body are animated. */
/* The cell grid to ask for who's around (or NULL: everyone is looked at). */
struct Grid;
void Condition_useGrid(struct Grid *grid);

void Condition_update(struct Object *self, struct Object *const *objects, int count,
                      float dt, float game_dt);

/* How heavy what they hold in their arms is for them: its weight over what
   they can carry well (body weight, strength, fitness); 0.08 and less: light. */
float Condition_load(const struct Object *self);

#endif /* PEOPLE_CONDITION_H */