Hierarchy naming
Apr. 22nd, 2007 10:42 pmCSprite -- encapsulates notion of animation and position, eg. a flapping bird at (x,y)
C???:CSprite -- a sprite with a velocity and subject to gravity, eg. a snowflake or an enemy
CChordate:C??? -- a C??? that interacts with other CChordates and the ground
CHero:CChordate -- the main character, movement specified by the keyboard
CDino:CChordate -- virtual base class for enemies, each of specifies a movement pattern as a function.
The question is, on this ad hoc palaeontological inheritance hierarchy, can you suggest a name for ???? Or a more general name for Chordate? Most games must have similar breakdowns, I wonder if there's a standard? :)
C???:CSprite -- a sprite with a velocity and subject to gravity, eg. a snowflake or an enemy
CChordate:C??? -- a C??? that interacts with other CChordates and the ground
CHero:CChordate -- the main character, movement specified by the keyboard
CDino:CChordate -- virtual base class for enemies, each of specifies a movement pattern as a function.
The question is, on this ad hoc palaeontological inheritance hierarchy, can you suggest a name for ???? Or a more general name for Chordate? Most games must have similar breakdowns, I wonder if there's a standard? :)