Thread: A little help with member functions

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Me pwn you.
    Join Date
    Feb 2006
    Location
    At my computer or in my bed.
    Posts
    46
    Hmmmm I will do better if I split up my code? Why, it's a console project.
    One would think that a little text based game is not worthy of more than one file....
    Am I incorrect?

  2. #2
    pwns nooblars
    Join Date
    Oct 2005
    Location
    Portland, Or
    Posts
    1,094
    Well a text based rpg is going to need to keep track of where the player is on the map, read in the map(probably from a file), the player's stats, the enemy's stats, combat, where the enemies are, information about each room, gear, classes, and if you want them races. I am probably missing some stuff.

    Somehow I don't think that will look very nice in one file. I split even my console programs up in order to debug them easier and make them more modular.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. member functions can't see private data members
    By ichijoji in forum C++ Programming
    Replies: 2
    Last Post: 11-22-2006, 02:36 PM
  2. issue with member functions
    By Chaplin27 in forum C++ Programming
    Replies: 4
    Last Post: 09-27-2006, 09:18 PM
  3. Classes and member functions
    By uraliss in forum C++ Programming
    Replies: 2
    Last Post: 04-13-2006, 07:38 AM
  4. Class member variables only readable by member functions?
    By _Elixia_ in forum C++ Programming
    Replies: 4
    Last Post: 10-10-2003, 03:52 PM
  5. trouble defining member functions
    By dP munky in forum C++ Programming
    Replies: 7
    Last Post: 04-13-2003, 08:52 PM