Closed yuripourre closed 3 years ago
thing.is(concept) { //copy all attributes return this; } //Method to query attributes thing has(characteristic) { return boolean; } Method to add attributes thing set(concept, amount?){ // }
bat.is(mammal).is(flyingCreature).set(wings, intAmount(2));
Allows definition of attributes based on a parent concept
Multiple parents can be defined by composition.
The structure can be similar to abilities. The map can be merged (simpler), or the attributes can be copied and flagged (with the parent concept).
Eg: Animal is a Being Mickey is Animal Mickey is a fictional character