ideas: added some
This commit is contained in:
23
ideas/concept.txt
Normal file
23
ideas/concept.txt
Normal file
@@ -0,0 +1,23 @@
|
||||
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...
|
||||
|
||||
|
||||
Reference in New Issue
Block a user