Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 1, 2017, 8:40:42 PM (7 years ago)
Author:
remartin
Message:

Gebastel in spawnChildren, hat immer noch Fehler drin.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/AsteroidMining_HS17/src/modules/asteroidmining/SpicedAsteroidField.cc

    r11610 r11615  
    4242
    4343#include "SpicedAsteroidField.h"
     44#include "AsteroidMinable.h"
    4445
    4546#include <algorithm>
     
    5051#include "core/EventIncludes.h"
    5152#include "network/NetworkFunction.h"
     53#include "util/Math.h"
    5254
    5355// #include "infos/PlayerInfo.h"
     
    6163// #include "controllers/FormationController.h"
    6264
    63 #include "../pickup/items/HealthPickup.h"
    64 #include "../pickup/PickupSpawner.h"
    65 #include "../pickup/Pickup.h"
     65
    6666//#include "../pickup/pickup ..... pickupable
    6767#include "../objects/collisionshapes/SphereCollisionShape.h"
     
    110110        SUPER(SpicedAsteroidField, XMLPort, xmlelement, mode);
    111111        //        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
    113120
    114121    }
     122
     123
     124
    115125
    116126    void SpicedAsteroidField::XMLEventPort(Element& xmlelement, XMLPort::Mode mode)
     
    151161    }
    152162
    153     void SpicedAsteroidField::setSize(float s){
    154         this->size = s;
    155     }
    156163
    157     float SpicedAsteroidField::getSize(){
    158         return this->size;
    159     }
    160164
    161165
Note: See TracChangeset for help on using the changeset viewer.