View Single Post
Old Aug 16th, 2007, 12:40 AM   #4
ReggaetonKing
Sexy Programmer
 
ReggaetonKing's Avatar
 
Join Date: Nov 2005
Location: New Jersey
Posts: 891
Rep Power: 3 ReggaetonKing is on a distinguished road
Send a message via AIM to ReggaetonKing
Imagine if you have a class, Card. This class has the following attributes:
class Card
{
	int hitPoints;
	string name;
        string[] attacks;
        ....functions and other shit goes here...
}
Now with the example above, you can read from a XML file, example:
<card>
   <name>Blue Eyes White Dragon</name>
   <hitpoints>1202020</hitpoints>
   <attacks>
      <name>Fire Spin</name>
      <name>Tail Whip</name>
   </attacks>
</card>
I do know a bit of Python but not enough to read from a XML and parse it to extract all of that information. I'm sure someone here could help with that. But if you see my two examples above, that could get your design started.
__________________
I would love to change the world, but they won't give me the source code!
ReggaetonKing is offline   Reply With Quote