This step is the most clear and abstract. You know exactly what I am doing now, coding. But what you don't know is the code that I am writing. (I wish I knew what I was writing). Honestly though, this does not seem to be going too bad thus far. I created a layout of my classes and interfaces that I want for my simulation. The actual coding process seems to be going well as for as the ideas are all now coded. My only problem is I'm supposed to have implemented graphics somehow by now ... Ya ... not sure how to do this. Same situation for movement. My players should be able to move be it random directions or to a set location. I have methods created for these actions to take place (I think) and a general move method for Flying and Walking. The only thing is, its all text ("I am ..."). I don't yet have a board that the players can be visualized on, but I have initiated an initial location for each player. They just aren't really going anywhere.
The good news is that the players and subclasses of player are created. The superclass for location has been created with Water and State subclasses. There is an interface created of MoveBehaviors. There is a need for another Interface to be implemented, this will be for the RaiseBanner action that both players will do. this seems a little not needed since they will always be raising different banners depending on their faction (so this may be a better location for this and another interface possibility will come along later).
As always, Code like a Grandmaster!
Hey Curtis, glad to hear the initial coding is going well. As to movement, you can certainly do something like give each animate an x/y instance field (corresponding to coordinates on the Processing PApplet sketch canvas) and modify those based on calls to movement. See my code from lab2 for the basic format of how to get a Processing driver started.
ReplyDeleteGTF PAUL
Also, feel free to email 211staff or drop by office hours.
Delete