Commit 775c07fd authored by Oliver Schmidts's avatar Oliver Schmidts

add first lines of new pedestrian constructor

parent e6cdf94a
......@@ -88,6 +88,23 @@ Pedestrian::Pedestrian()
_routingStrategy=ROUTING_GLOBAL_SHORTEST;
}
Pedestrian::Pedestrian(const StartDistributionSubroom& agentsParameters, const Building& building)
: _age(agentsParameters.GetAge()),
_gender(agentsParameters.GetGender()),
_height(agentsParameters.GetHeight()),
_desiredFinalDestination(agentsParameters.GetGoalId()),
_group(agentsParameters.GetGroupId()),
_building(&building),
_router(building.GetRoutingEngine()->GetRouter(agentsParameters.GetRouterId())),
_lastPosition(),
_roomID(agentsParameters.GetRoomId()),
_subRoomID(agentsParameters.GetSubroomID())
{
}
Pedestrian::~Pedestrian()
{
......@@ -871,3 +888,5 @@ int Pedestrian::GetColor()
return color;
}
......@@ -38,6 +38,8 @@
#include "Ellipse.h"
#include "../general/Macros.h"
#include "../geometry/NavLine.h"
#include "AgentsParameters.h"
#include "PedDistributor.h"
class Building;
class NavLine;
......@@ -131,6 +133,7 @@ private:
public:
// constructors
Pedestrian();
explicit Pedestrian(const StartDistributionSubroom& agentsParameters, const Building& building);
virtual ~Pedestrian();
// Setter-Funktionen
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment