The personality class:
An example of the use, checking if a gnome is a miner and finding him a job:
if (gnome.personality.hasAttribute(PersonalityAttribute.Miner))
{
if (findMiningActionForGnome(gnome, world))
return;
}
The system basically works using a Dictionary< Attribute, Skill Level > collection.
The system basically works using a Dictionary< Attribute, Skill Level >
No comments:
Post a Comment