Base class decorator for Package that implements IEntityDecorator Package template, delegates all work to wrapped Package class.
More...
#include <PackageDecorator.h>
Base class decorator for Package that implements IEntityDecorator Package template, delegates all work to wrapped Package class.
◆ PackageDecorator()
PackageDecorator::PackageDecorator |
( |
Package * |
p | ) |
|
|
inline |
◆ getDestination()
virtual Vector3 PackageDecorator::getDestination |
( |
| ) |
const |
|
inlinevirtual |
◆ getOwner()
virtual Robot* PackageDecorator::getOwner |
( |
| ) |
const |
|
inlinevirtual |
Returns the owner of the package.
- Returns
- pointer to Robot owning the package
◆ getStrategyName()
virtual std::string PackageDecorator::getStrategyName |
( |
| ) |
const |
|
inlinevirtual |
Returns the name of the strategy for this package.
- Returns
- String name of strategy
◆ initDelivery()
virtual void PackageDecorator::initDelivery |
( |
Robot * |
owner | ) |
|
|
inlinevirtual |
Sets the attributes for delivery.
- Parameters
-
owner | Robot for the package to be delivered to |
◆ requiresDelivery()
virtual bool PackageDecorator::requiresDelivery |
( |
| ) |
const |
|
inlinevirtual |
Returns whether or not the package needs to be delivered.
- Returns
- boolean value of the above statement
◆ setStrategyName()
virtual void PackageDecorator::setStrategyName |
( |
std::string |
strategyName_ | ) |
|
|
inlinevirtual |
Set the Strategy Name.
- Parameters
-
strategyName_ | Strategy name |
The documentation for this class was generated from the following file:
- /home/spring-2025/drone_simulation/service/include/simulationmodel/entity/decorator/PackageDecorator.h