Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 48 lines (43 sloc) 1.283 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
#include "SpriteMaps.h"
#include "BuildingConfiguration.h"
#include "GameBuildings.h"
#include "ContentLoader.h"

bool BuildingNamesTranslatedFromGame = false;

BuildingConfiguration::BuildingConfiguration(string name, int game_type, int game_subtype, std::string str_custom)
{
  this->name = name;
  this->game_type = game_type;
  this->game_subtype = game_subtype;
  this->game_custom = -1;
  this->str_custom = str_custom;
  this->width = this->height = 1;
  this->canBeFloating = false;
  this->canBeAnySize = false;
  this->sprites = NULL;
}
BuildingConfiguration::BuildingConfiguration()
{
  this->name = "";
  this->game_type = -1;
  this->game_subtype = -1;
  this->game_custom = -1;
  this->str_custom = str_custom;
  this->width = this->height = 1;
  this->canBeFloating = false;
  this->canBeAnySize = false;
  this->sprites = NULL;
}
BuildingConfiguration::~BuildingConfiguration(void)
{
//cant delete bc.sprites here- screws up BCs copy semantics
}


void DumpBuildingNamesToDisk(){
    /*
FILE* fp = fopen("buildingdump.txt", "w");
if(!fp) return;
for(uint32_t j=0; j < contentLoader->classIdStrings.size(); j++){
fprintf(fp, "%i:%s\n",j, contentLoader->classIdStrings[j].c_str());
}
fclose(fp);
*/
}
Something went wrong with that request. Please try again.