Im Working on adding different game modes to my program.
During a game all logic is handled by TmyLogic
These are following types are the logic types I dont want to extend as the variatons are to great they only share 1-2 out of 30 methods or functions
My question is how set up Types Field to Hold any of the LogicTypes
ie
During a game all logic is handled by TmyLogic
Type TmyLogic Field GameLogic 'Type Field Compare 'Type Field Conditions 'Type End Type
These are following types are the logic types I dont want to extend as the variatons are to great they only share 1-2 out of 30 methods or functions
Type FallLogic End Type Type PlaceLogic End Type Type DynamicLogic End Type
My question is how set up Types Field to Hold any of the LogicTypes
ie
Type TmyLogic Field GameLogic 'Type Field Compare 'Type Field Conditions 'Type Method Create_Classic() GameLogic = New FallLogic End Method Method Create_Puzzel() GameLogic = New PlaceLogic End Method Method Create_DynamicLogic() Gamelogic = New DynamicLogic End Method End Type