practice/ideas/concept.txt
2017-04-20 18:28:30 -07:00

24 lines
366 B
Plaintext

What if I have static representations of a character, and have mutable modifers to that static state.
i.e.
struct {
int x,
int y,
int health,
}monster
monster goblin;
goblin.x = 5;
goblin.y = 5;
goblin.health = 45;
int goblin.health.mod;
goblin.health.mod = -5 (took dmg);
current_goblin_health = goblin.health + goblin.health.mod
something like that...