1 #ifndef PACKAGE_DECORATOR_H_
2 #define PACKAGE_DECORATOR_H_
4 #include "IEntityDecorator.h"
54 return sub->setStrategyName(strategyName_);
Base class decorator for all entities that implements each specific entity in a template,...
Definition: IEntityDecorator.h:15
Base class decorator for Package that implements IEntityDecorator Package template,...
Definition: PackageDecorator.h:13
virtual std::string getStrategyName() const
Returns the name of the strategy for this package.
Definition: PackageDecorator.h:32
virtual Robot * getOwner() const
Returns the owner of the package.
Definition: PackageDecorator.h:39
virtual void handOff()
Gives the robot/owner this package.
Definition: PackageDecorator.h:67
PackageDecorator(Package *p)
Constructor for PackageDecorator, calls IEntityDecorator constructor.
Definition: PackageDecorator.h:19
virtual Vector3 getDestination() const
Gets the Package's destination.
Definition: PackageDecorator.h:25
virtual void initDelivery(Robot *owner)
Sets the attributes for delivery.
Definition: PackageDecorator.h:62
virtual bool requiresDelivery() const
Returns whether or not the package needs to be delivered.
Definition: PackageDecorator.h:46
virtual void setStrategyName(std::string strategyName_)
Set the Strategy Name.
Definition: PackageDecorator.h:53
Represents a package in a physical system. Packages move using euler integration based on a specified...
Definition: Package.h:17
Represents a robot in a physical system.
Definition: Robot.h:19
void receive(Package *p)
Receives the passed in package.
a simple class used for vector math, most function are self explanatory
Definition: vector3.h:12