Console Text RPG- File I/O and Inventory

This is a discussion on Console Text RPG- File I/O and Inventory within the Game Programming forums, part of the General Programming Boards category; Heres what I do: 1. Have a file that lists the ID# of an item/weapon, then IDs it as an ...

  1. #16
    Spaced Cadet
    Join Date
    Aug 2003
    Posts
    110
    Heres what I do:
    1. Have a file that lists the ID# of an item/weapon, then IDs it as an Item or a weapon
    2. I have a file that lists all the weapons and their stats, along with the weapon's id#
    3. same as 2, except for items
    4. I have a struct that holsd a char array for the current item, an int array for what items you have, and misc stats.

    Note: you can have many files open at the same time.

  2. #17
    Banned frenchfry164's Avatar
    Join Date
    Oct 2001
    Posts
    1,552
    If you aren't processing command line parameters, there is no reason to accept them as parameters.

  3. #18
    Registered User
    Join Date
    May 2002
    Posts
    31
    If you aren't processing command line parameters, there is no reason to accept them as parameters.
    We'll if youre not running a program inside a program then void main is just as good as int main.

    See my point? It's not that you need
    int main(int argc, char *argv[])
    but, it is good practice.
    I never lie... except for right now.

Page 2 of 2 FirstFirst 12
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Text adventure engine idea. thoughts?
    By suzakugaiden in forum Game Programming
    Replies: 16
    Last Post: 01-15-2006, 04:13 AM
  2. text rpg help
    By xxwerdxx in forum Game Programming
    Replies: 1
    Last Post: 11-26-2005, 07:16 PM
  3. Unknown Memory Leak in Init() Function
    By CodeHacker in forum Windows Programming
    Replies: 3
    Last Post: 07-09-2004, 09:54 AM
  4. Reading a line from a text file Please help
    By Blizzarddog in forum C++ Programming
    Replies: 7
    Last Post: 05-22-2003, 12:35 PM
  5. Check out My Text Rpg Game
    By knight543 in forum C++ Programming
    Replies: 3
    Last Post: 05-17-2002, 10:40 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21