OOP Design for Boardgame

BlitzMax Forums/BlitzMax Beginners Area/OOP Design for Boardgame

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Make a piece type with an abstract move method.

Then the dwarf inherits the piece type and the dwarf's move method moves how dwarfs are allowed to move.

The troll inherits the piece type and the troll's move method follows the rules of how a troll can move.

etc...