diff options
| author | Japa | 2010-04-09 14:12:29 +0000 |
|---|---|---|
| committer | Japa | 2010-04-09 14:12:29 +0000 |
| commit | 81aefc8e03ff3f647494012e18bcdc8f33f4de42 (patch) | |
| tree | 4b825dc642cb6eb9a060e54bf8d69288fbee4904 /BuildingConfiguration.cpp | |
| parent | c3d0b7d6778af46299901d959d589d6599afa21c (diff) | |
| download | stonesense-81aefc8e03ff3f647494012e18bcdc8f33f4de42.tar.gz stonesense-81aefc8e03ff3f647494012e18bcdc8f33f4de42.tar.bz2 stonesense-81aefc8e03ff3f647494012e18bcdc8f33f4de42.tar.xz | |
There is no trunk
it is not the code that compiles, it is you.
Diffstat (limited to 'BuildingConfiguration.cpp')
| -rw-r--r-- | BuildingConfiguration.cpp | 76 |
1 files changed, 0 insertions, 76 deletions
diff --git a/BuildingConfiguration.cpp b/BuildingConfiguration.cpp deleted file mode 100644 index 7a3665a..0000000 --- a/BuildingConfiguration.cpp +++ /dev/null @@ -1,76 +0,0 @@ -#include "SpriteMaps.h"
-#include "BuildingConfiguration.h"
-#include "GameBuildings.h"
-#include "ContentLoader.h"
-
-bool BuildingNamesTranslatedFromGame = false;
-
-BuildingConfiguration::BuildingConfiguration(string name, int gameID)
-{
- this->name = name;
- this->gameID = gameID;
- this->width = this->height = 1;
- this->canBeFloating = false;
- this->canBeAnySize = false;
- this->sprites = NULL;
-
- /*int len = (int) strlen(IDstring);
- if(len > 100) len = 100;
- memcpy(this->gameIDstr, IDstring, len);
- this->gameIDstr[len] = 0;*/
-}
-
-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.buildingNameStrings.size(); j++){
- fprintf(fp, "%i:%s\n",j, contentLoader.buildingNameStrings[j].c_str());
- }
- fclose(fp);
-}
-
-/*void TranslateBuildingNames( vector<BuildingConfiguration>& configs, vector<string>& buildingNames ){
-
- //for each config, find it's integer ID
- for(uint32_t i=0; i < configs.size(); i++){
- char* ptr = configs[i].gameIDstr;
- uint32_t j;
- uint32_t num = (uint32_t)buildingNames.size();
- for(j=0; j < num; j++){
- if( strcmp( ptr, buildingNames[j].c_str()) == 0){
- //assign ID
- configs[i].gameID = j;
- //jump to next buildingType
- break;
- }
- }
- if(j >= buildingNames.size())
- WriteErr("Unable to match building '%s' to anything in-game\n", ptr);
- }
-
- BuildingNamesTranslatedFromGame = true;
-}*/
-
-int TranslateBuildingName( const char* currentName, vector<string>& buildingNames )
-{
- if (currentName == NULL || currentName[0]==0)
- return INVALID_INDEX;
-
- uint32_t j;
- uint32_t num = (uint32_t)buildingNames.size();
- for(j=0; j < num; j++){
- if( strcmp( currentName, buildingNames[j].c_str()) == 0){
- //assign ID
- return (j);
- }
- }
-
- WriteErr("Unable to match building '%s' to anything in-game\n", currentName);
- return INVALID_INDEX;
-}
|
