diff options
| author | Japa | 2010-04-17 06:37:34 +0000 |
|---|---|---|
| committer | Japa | 2010-04-17 06:37:34 +0000 |
| commit | 94ac8727c6119f909027dffc68bc77f2cf268a74 (patch) | |
| tree | 5b6cf892edd3d0a105a7c9136775029e05ace55d /BuildingConfiguration.cpp | |
| parent | 41a76c7d2933c720ac629c69cb4ac42e4d29a5c0 (diff) | |
| download | stonesense-94ac8727c6119f909027dffc68bc77f2cf268a74.tar.gz stonesense-94ac8727c6119f909027dffc68bc77f2cf268a74.tar.bz2 stonesense-94ac8727c6119f909027dffc68bc77f2cf268a74.tar.xz | |
worked more on getting custom buildings to work, also made placeholders for most of the materials. everything not set yet is not PINK! as a motivation to get it done.
Diffstat (limited to 'BuildingConfiguration.cpp')
| -rw-r--r-- | BuildingConfiguration.cpp | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/BuildingConfiguration.cpp b/BuildingConfiguration.cpp index 629c316..a0e7b87 100644 --- a/BuildingConfiguration.cpp +++ b/BuildingConfiguration.cpp @@ -19,7 +19,20 @@ BuildingConfiguration::BuildingConfiguration(string name, int gameID) memcpy(this->gameIDstr, IDstring, len);
this->gameIDstr[len] = 0;*/
}
-
+BuildingConfiguration::BuildingConfiguration()
+{
+ this->name = "";
+ this->gameID = BUILDINGTYPE_NA;
+ 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
|
