Question to Storm Chaser about Programming

Malisam1
Malisam1
Minor Nuisance
Joined Feb 2013 Posts: 227
Hey Storm Chaser,
My question is when you code for a specific unit, for example the Blackout, how is the code implemented for the hundreds of Blackouts in the entire game. Is it by classes or? Just curious player learning Python :smile:

  • Axel L
    Axel L
    Unicorn Overlord
    Joined Mar 2013 Posts: 11,060
    I would recommend to ask FriendlyFixer about this if you want a precise answer for WC. But, I would guess that they use the approach of having some form of list and that every unit has a unique ID number in the list. When it comes to modifying the stats, I would guess that this is done by adding or removing tags and tweaking some numbers like the health count.
     <|=  0330 1323 1103 1211 0312 1201 1302 1203 0230 1220 0200  =|> 
     <|=  0302 0320 1310 1220 1211 0200 1313 1233 1302 1210 0230  =|> 
     <|=  0200 1211 0310 1303 0321 1301 1311 1221 1312 0312 1201  =|> 
     <|=  1230 1221 1211 0230 0320 0301 1232 1203 1211 0200 1221  =|> 
     <|=  1232 0200 1201 0302 0200 1210 0320 1221 1203 0232 1310  =|> 
     <|=  0232 1221 1233 1232 1201 1302 1321 0232 0232 0332 1331  =|> 
  • Jason Ensinger
    Jason Ensinger
    Unicorn Overlord
    Joined Sep 2012 Posts: 4,353
    I would assume a class that inherits something like airUnit (which inherits unit) and maybe implements the iUniqueUnit interface. I'm sure Axel is right about the database they can edit with an in-house unit designer they've built to input the graphics, stats and filters.That's just the data aspect of units, but the programming would use classes if designed competently.
  • Malisam1
    Malisam1
    Minor Nuisance
    Joined Feb 2013 Posts: 227
    Thanks for the explanation guys. Both seems to be correct in assumption of how it works. @Axel L do you know how I can ask FriendlyFixer

  • Axel L
    Axel L
    Unicorn Overlord
    Joined Mar 2013 Posts: 11,060
    Malisam1 said:
    Thanks for the explanation guys. Both seems to be correct in assumption of how it works. @Axel L do you know how I can ask FriendlyFixer

    You can contact him with a private message on the WC Discord server. His discord name is KIX_FriendlyFixer#6246 and his name is also marked with red letter. He do also have a forum account under the name "FriendlyFixer" and his forum rank is "WC Game Team".

    Helpful links
    WC Discord server: https://discord.gg/warcommander

    FriendlyFixer's profile page: https://www.kixeye.com/profile/4f121dbb83d34506aa9dbb98
     <|=  0330 1323 1103 1211 0312 1201 1302 1203 0230 1220 0200  =|> 
     <|=  0302 0320 1310 1220 1211 0200 1313 1233 1302 1210 0230  =|> 
     <|=  0200 1211 0310 1303 0321 1301 1311 1221 1312 0312 1201  =|> 
     <|=  1230 1221 1211 0230 0320 0301 1232 1203 1211 0200 1221  =|> 
     <|=  1232 0200 1201 0302 0200 1210 0320 1221 1203 0232 1310  =|> 
     <|=  0232 1221 1233 1232 1201 1302 1321 0232 0232 0332 1331  =|> 
  • Malisam1
    Malisam1
    Minor Nuisance
    Joined Feb 2013 Posts: 227
    Axel L said:
    Malisam1 said:
    Thanks for the explanation guys. Both seems to be correct in assumption of how it works. @Axel L do you know how I can ask FriendlyFixer

    You can contact him with a private message on the WC Discord server. His discord name is KIX_FriendlyFixer#6246 and his name is also marked with red letter. He do also have a forum account under the name "FriendlyFixer" and his forum rank is "WC Game Team".

    Helpful links
    WC Discord server: https://discord.gg/warcommander
    FriendlyFixer's profile page: https://www.kixeye.com/profile/4f121dbb83d34506aa9dbb98
    Thank you! :)
Sign In or Register to comment.