pieces and gameboards, using forms and controls ? advice needed

Jun 7 2007 4:06 PM

Hi,

Let me start at the beginning, the general idea is to create a dll wich holds classes that in turn are building blocks for all kinds of boardgames. That's the general plan anyway.

Here is my thinking path, feel free to correct me if you think I should take another route.

  1. The board
    I was thinking of using the Windows form as a board, using the override onPaint method to draw all kinds of boards. So my question naturally is, is it a good idea to use the windows form as a class I can inherit from to creating all kind of boards?
  2. The pieces on the board
    Is it a good idea to inherit from the base class Control to create all kinds of pieces on the gameboard (form)?
    I have tried the above approach for the pieces but when inheriting from the control class, when I create an object, this object has loads of properties attached to it wich I don't really need. What would be a better way to go about doing this and create a gamepiece object with only the proprties attached to it that I have written. This also applies to the board (form), is there a way to only have my own written properties attached to the form?

The reason I ask these questions is that I would like a good starting point form my little project. A good start goes a long way, as they always say. If I posted this in the wrong section I apologize, I didn't really see any other section to post this in. Also you might have guessed I'm a novice at not using not predefined controls and objects. If you grasp my meaning...

<edit>
I found the title not really on the subject, so I changed it
</edit>

Answers (2)