Maybe a better game then would be chess to start. Ken -----Original Message----- From: programmingblind-bounce@xxxxxxxxxxxxx [mailto:programmingblind-bounce@xxxxxxxxxxxxx] On Behalf Of Homme, James Sent: Monday, September 27, 2010 3:07 PM To: programmingblind@xxxxxxxxxxxxx Subject: RE: Object Orientation And Game Programming Question Hi, I just want to keep this very simple just for my learning for now and say that all the player can do is move around. Maybe that's a bit too simple, but I'm coming from almost 0 knowledge and trying to get my head around OO. Thanks. Jim Jim Homme, Usability Services, Phone: 412-544-1810. Skype: jim.homme Internal recipients, Read my accessibility blog. Discuss accessibility here. Accessibility Wiki: Breaking news and accessibility advice -----Original Message----- From: programmingblind-bounce@xxxxxxxxxxxxx [mailto:programmingblind-bounce@xxxxxxxxxxxxx] On Behalf Of Alex Hall Sent: Monday, September 27, 2010 1:19 PM To: programmingblind@xxxxxxxxxxxxx Subject: Re: Object Orientation And Game Programming Question Hmmm... I think, and this is coming from a guy who still has almost a year before his first CS degree (so take it with a grain of salt) that: 1. What is the player doing/what can he do, and what is/can the field do? If the field can move the player, then the field needs the player's location. If the player needs to move and the field has nothing to do with it, then the player needs his location and that of any objects with which he might interact. 2. You may want to forget both of them, and have a master object that knows everything about both and can manipulate them both at will. I always think of it in terms of perspective: if I am a player, then I have no way of knowing everything. If I am a field, I know everything, but I have no power to manipulate it. Therefore, if it were me, I would introduce a god-like object able to see and know all. Let god move the player on the field, that way, once the rest of the team (and the opposing team) come onto the field, god can still see everyone and decide what to do when, say, two players collide. You may want to turn the field into god, butthen you have a very powerful field and, personally, I would rename it something else anyway and just leave a static 2d array of positions as the actual field. I hope that made some sense. Again, I have little experience outside of classes and my own projects, so take this for what it is worth. On 9/27/10, Homme, James <james.homme@xxxxxxxxxxxx> wrote: > Hi, > This is just Jim trying to come to grips with Object Orientation again. > > As a simple example, let's say that we are making a program that plays > American football. Let's further say that we are working with one player who > is on the field. Should we allow the field to know where the player is on > the field, or should we allow the player to know where the player is on the > field? How do we determine the answer? > > Thanks. > > Jim > > Jim Homme, > Usability Services, > Phone: 412-544-1810. Skype: jim.homme > Internal recipients, Read my accessibility > blog<http://mysites.highmark.com/personal/lidikki/Blog/default.aspx>. > Discuss accessibility > here<http://collaborate.highmark.com/COP/technical/accessibility/default.asp x>. > Accessibility Wiki: Breaking news and accessibility > advice<http://collaborate.highmark.com/COP/technical/accessibility/Accessibi lity%20Wiki/Forms/AllPages.aspx> > > > ________________________________ > This e-mail and any attachments to it are confidential and are intended > solely for use of the individual or entity to whom they are addressed. If > you have received this e-mail in error, please notify the sender immediately > and then delete it. If you are not the intended recipient, you must not > keep, use, disclose, copy or distribute this e-mail without the author's > prior permission. The views expressed in this e-mail message do not > necessarily represent the views of Highmark Inc., its subsidiaries, or > affiliates. > -- Have a great day, Alex (msg sent from GMail website) mehgcap@xxxxxxxxx; http://www.facebook.com/mehgcap __________ View the list's information and change your settings at //www.freelists.org/list/programmingblind __________ View the list's information and change your settings at //www.freelists.org/list/programmingblind __________ View the list's information and change your settings at //www.freelists.org/list/programmingblind