Jump to content
  • Advertisement


This topic is now archived and is closed to further replies.



This topic is 6796 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I have to make a project for my c++ course, they let us choose, and I made (am making) a mahjongg-game. Its comming along nicely, all I need is some graphics, and a little code concernig the highscore, nothing difficult. BUT I made it as folows : I have a global object called GAME, this contains other objects called HIHSCORE, MENU, BOARD. Depending on the state of the game (playing, in menu,..) GAME calls the correct function from the other objects (like draw()....) Is this so wrong?? He now wants us to us paradigm or something like that to make our classes, and insists that we completely seperate the users interface from the game. I understand what he means but I don''t think it is neccesary to do this here. I would just like to here your comments on this, either convince me my teacher is right, or give me some arguments against him please. Best part is that he is not my c++-teacher, just some guy who thinks he knows it all and who gave a really crappy OOP-course in the first semester Any comments are welcome

Share this post

Link to post
Share on other sites
I don''t think you''re wrong, if your code looks nice, it''s a good way to go, if the project is small. But, you''ll have to ask yourself if you''re able to convert the game into oop. It might be good to test oop on such a small project, instead of using it "when you think it''s neccesary".
I say you should do what he thinks. It''s good practice.

A polar bear is a rectangular bear after a coordinate transform.

Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!