public class Luggage extends CircularMapComponent
Passenger
.
Luggage has a complexity and threat level.Modifier and Type | Field and Description |
---|---|
private float |
complexity
The complexity of the bag.
|
static Luggage |
NO_LUGGAGE
Holder to indicate no luggage.
|
private Passenger |
owner
The owner of the luggage.
|
private float |
threatLevel
The threat level of the luggage.
|
private LuggageType |
type
The type of luggage.
|
position
map
Constructor and Description |
---|
Luggage(LuggageType type,
double threatLevel,
double complexity)
Creates the luggage.
|
Modifier and Type | Method and Description |
---|---|
float |
getComplexity()
Gets the complexity.
|
LuggageType |
getLuggageType()
Gets the luggage type.
|
Passenger |
getOwner()
Gets the owner of the luggage.
|
float |
getThreatLevel()
Gets the threat level.
|
void |
setOwner(Passenger owner)
Sets the owner of the luggage.
|
void |
setPosition(Position position)
Sets the position of the luggage.
|
getRadius, getVectorToPosition, isLineCollision
getDistance, getPosition
isDestroyed
public static final Luggage NO_LUGGAGE
private final float threatLevel
private Passenger owner
private final LuggageType type
private final float complexity
public Luggage(LuggageType type, double threatLevel, double complexity)
type
- The type.threatLevel
- The threat level of the luggage.complexity
- The luggage complexity.public float getComplexity()
public LuggageType getLuggageType()
public Passenger getOwner()
public float getThreatLevel()
public void setOwner(Passenger owner)
owner
- The owner.public void setPosition(Position position)
position
- The position.