Team Manager in C# .NET 2.0

However you play online - Java, Vassal, Email, Cyanide etc - talk about it here.
This is also the place for discussing the various tools for managing leagues, teams and so on.

Moderator: TFF Mods

Post Reply
Mr_Magick
Rookie
Rookie
Posts: 1
Joined: Wed Jun 28, 2006 9:53 pm

Team Manager in C# .NET 2.0

Post by Mr_Magick »

I am a coding hobbyist, and I am trying to write a simple application to manage a Blood Bowl team. I would like to store all of the team information in an XML file, and I find that I don't have enough knowledge of XML to format the elements and if I should use attributes.

I have so far:

Code: Select all

<teams>
 <squad>
       <name>Amazon</name>
     <reroll>50000</reroll>
      <position>
            <name>Linewomen</name>
          <minqty>0</minqty>
          <maxqty>16</maxqty>
         <cost>50000</cost>
          <ma>6</ma>
          <st>3</st>
          <ag>3</ag>
          <av>7</av>
          <skills>Dodge</skills>
          <normal>g</normal>
          <double>asp</double>
        </position>
   </squad>
</teams>
Would anyone with XML experience please let me know if this is a good start, or if I should go back to XML 101 for dummies?

Reason: ''
User avatar
DoubleSkulls
Da Admin
Posts: 8219
Joined: Wed May 08, 2002 12:55 pm
Location: Back in the UK
Contact:

Post by DoubleSkulls »

Looks fine apart from the <skills> tag which should probably be more like:

Code: Select all

<skills>
   <skill>dodge</skill>
</skills>
What would be cool is to define the schema in XSD then it makes it much easier for you to share your XML with other applications.

Reason: ''
Ian 'Double Skulls' Williams
Father911
Star Player
Star Player
Posts: 665
Joined: Wed Oct 19, 2005 4:12 pm

Post by Father911 »

Is this for LRB 5.0 or LRB 4.0?
if it is 5.0 then you will want to track skills, stat increases and doubles roll skills over and above the base player so that your program can calculate TV.

Reason: ''
__________________________________
You're friendly neighbourhood Fluff Bunny
Post Reply