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

Pages: 1-

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

Name: Anonymous 2008-04-08 5:47

Dicks

Name: Anonymous 2008-04-08 5:51

I will always lol at ShootanGaem();

Name: Anonymous 2008-04-08 6:18

>>1
Call it GameBase, but implement a GameBaseFactoryInstantiatorUltimateMasterAlphaOmegaGod

>>3
I don't get it

Name: Anonymous 2008-04-08 6:19

>>3
ShootanGaem();

Name: Anonymous 2008-04-08 6:19

>>5
lol

Name: ​​​​​​​​​​ 2010-10-22 2:53

Name: Anonymous 2010-11-15 7:35

Name: Anonymous 2010-12-17 1:27

Xarn is a bad boyfriend

Name: Sgt.Kabukiman 2012-05-21 14:25

All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy

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