Changeset 11615 for code/branches/AsteroidMining_HS17/src/modules/asteroidmining/SpicedAsteroidField.cc
- Timestamp:
- Dec 1, 2017, 8:40:42 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/AsteroidMining_HS17/src/modules/asteroidmining/SpicedAsteroidField.cc
r11610 r11615 42 42 43 43 #include "SpicedAsteroidField.h" 44 #include "AsteroidMinable.h" 44 45 45 46 #include <algorithm> … … 50 51 #include "core/EventIncludes.h" 51 52 #include "network/NetworkFunction.h" 53 #include "util/Math.h" 52 54 53 55 // #include "infos/PlayerInfo.h" … … 61 63 // #include "controllers/FormationController.h" 62 64 63 #include "../pickup/items/HealthPickup.h" 64 #include "../pickup/PickupSpawner.h" 65 #include "../pickup/Pickup.h" 65 66 66 //#include "../pickup/pickup ..... pickupable 67 67 #include "../objects/collisionshapes/SphereCollisionShape.h" … … 110 110 SUPER(SpicedAsteroidField, XMLPort, xmlelement, mode); 111 111 // XMLPortParam(PickupSpawner, "pickup", setPickupTemplateName, getPickupTemplateName, xmlelement, mode); 112 XMLPortParam(SpicedAsteroidField, "size", setSize, getSize, xmlelement, mode); 112 XMLPortParam(SpicedAsteroidField, "count", setCount, getCount, xmlelement, mode); 113 XMLPortParam(SpicedAsteroidField, "mDensity", setMineralDensity, getMineralDensity, xmlelement, mode); 114 XMLPortParam(SpicedAsteroidField, "position", setPosition, getPosition, xmlelement, mode); 115 XMLPortParam(SpicedAsteroidField, "maxSize", setMaxSize, getMaxSize, xmlelement, mode); 116 XMLPortParam(SpicedAsteroidField, "minSize", setMinSize, getMinSize, xmlelement, mode); 117 XMLPortParam(SpicedAsteroidField, "radius", setRadius, getRadius, xmlelement, mode); 118 XMLPortParam(SpicedAsteroidField, "foggy", setFog, isFoggy, xmlelement, mode); 119 113 120 114 121 } 122 123 124 115 125 116 126 void SpicedAsteroidField::XMLEventPort(Element& xmlelement, XMLPort::Mode mode) … … 151 161 } 152 162 153 void SpicedAsteroidField::setSize(float s){154 this->size = s;155 }156 163 157 float SpicedAsteroidField::getSize(){158 return this->size;159 }160 164 161 165
Note: See TracChangeset
for help on using the changeset viewer.