Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Different game types / win modes
04-23-2010, 06:18 PM,
#4
 
Actually, I am partially working on this one. I needed a game mode for AI testing similar to "Practice" but not controlled by the user, and another without graphics (text mode only).
I found quite difficult modify the default game flow. I had to copy/paste a huge amount of code from game.cpp, because for example, I don't need a playing character, the main menu or the graphics at all.
Now I'm trying with declaring a separate class AI_TESTING friend of the class GAME, thus implementing new game modes invoking its methods.
I wonder if is possible to develop more general functions of the class GAME, like an API, so to avoid copying code that change from a rev to another?
Reply


Messages In This Thread
[No subject] - by NaN - 04-22-2010, 10:10 AM
[No subject] - by MirceaKitsune - 04-22-2010, 10:15 AM
[No subject] - by fresbeeplayer - 04-23-2010, 06:18 PM
[No subject] - by MirceaKitsune - 04-23-2010, 07:27 PM
[No subject] - by joevenzon_phpbb2_import3 - 04-24-2010, 12:58 PM
[No subject] - by MirceaKitsune - 04-25-2010, 07:32 AM
[No subject] - by joevenzon_phpbb2_import3 - 04-25-2010, 03:04 PM
[No subject] - by vdriftfan - 02-11-2012, 01:11 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)