Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Enterprise programming advice needed

Name: Anonymous 2008-04-08 4:35

I defined an interface as Draw() and PollMouse(), then implemented it with classes GoFish and ShootanGaem. I call PollMouse() and Draw() in the game loop, then those methods call whatever else they need. So GoFish.PollMouse() would check if there was a card there and might call GoFish.PlayCard(), whereas ShootanGaem.PollMouse() just has to call this.CalculateLazor(). The idea is to let the user switch between games at runtime and allow new games to be coded later. My question is, what do I call the base class? I'm new to design patterns but I'm pretty sure the facade or strategy doesn't apply here.

tl;dr post ending in 69 names my new class

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List