Creating a new class library, new properties, etc...

I want to make a computer version of the card game Munchkin. To do that, I'm trying to make a class library where I can declare my own variables, with my own properties to match. For example, I want something like:

Dim playMike as Player
playMike.Gender = Male
...
playMike.Level = 3

etc.

Well, I've basically figured that part out (I think), but I also want to make sure that only property values within a certain limit can be assigned. Like, I want my player to be either Male or Female; not "3", or "disco". And the level must be greater than or equal to 1. See what I mean?

So, any help in this field would be appreciated.
As I sit here, I contemplate the last words of Socrates... "I drank what?"
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories