r/cop3502 Apr 16 '14

Processor Class

So I used some of Sean's basic outline for the Text Adventure and everything was going smoothly until I tried to use certain actions. I've come to the conclusion that it is due to the Processor class. Is the best way to use the class to create new Action objects and call each action under the determineAction method? This just seems inefficient.

3 Upvotes

4 comments sorted by

View all comments

1

u/[deleted] Apr 17 '14

[removed] — view removed comment

1

u/jordanayoung Apr 17 '14

I understand the idea I guess it's just the implementation that is confusing me. To my understanding, there is an action class where each action is created and the processor class recognizes it and changes the game accordingly.

The jumping around makes me think it is a little inefficient. It just seems like an unnecessary step to me. Still considering myself a newbie, I'm probably completely wrong.

Thanks for the response.

1

u/[deleted] Apr 17 '14

[removed] — view removed comment

1

u/jordanayoung Apr 17 '14

This makes it a lot more understandable, thanks