I have an RPG game and I want to be able to load a character's stats and map position into the game from a text file.
Paladin
HP: 4500
MP: 800
Strength: 200
Vitality: 300
Agility: 100
Type: Posts; User: azndragon247
I have an RPG game and I want to be able to load a character's stats and map position into the game from a text file.
Paladin
HP: 4500
MP: 800
Strength: 200
Vitality: 300
Agility: 100
All i can say is WOW, i didn't expect a whole explanation on that. :p
But thanks a lot 7stud, my teacher doesnt really explain it all too well.
I did write the program but as for the istream &inStream i got that from one of my teacher's examples, which i didn't understand too well to begin with.
Yea i understand that i'm missing arguments, otherwise it would compile, but i don't know exactly what i'm supposed to put in the parentheses :(
Currently i've figured out the vector problems i hope. But now i am getting errors about my loadmap. When i use this->loadmap(); it gives me a error that i dont have any arguments, can someone tell...
I'm getting a bunch of errors that deal with the vector<char> Map. It seems that it won't recognize the vector Map in the .cpp file. Can someone please help me out?
So i would set the limit of the vector to 100 members (since 10x10 is 100) by doing something like this vector <char[100]> Map and this->loadmap() should work right?
Both actually, but heres the code for the loading function and
In the .h file:
#include <stdlib.h>
#include <vector>
#include <fstream>
So i would have height_ and width_ in the maze file to be loaded?
Yeah, I'm trying to print this maze using a function but im confused on how to do it with a vector.
I'm having trouble creating my display function where it displays the map when I initialize it.
I'm trying to load a map from a file into the vector and then printing it back out, but I'm not sure about how to do it. I'm trying to make a map where the user can walk and he can't walk into...