PrimaryLargeWeaponSlot, SecondaryLargeWeaponSlot, SmallWeaponSlotpublic interface IWeaponSlot
| Modifier and Type | Method | Description |
|---|---|---|
int |
getId() |
Retrieve the identifier for this slot.
|
javafx.geometry.Point2D |
getOffset() |
Retrieve the offset of the empty weapon slot.
|
ESide |
getSide() |
Retrieve the side the slot is located on.
|
java.util.Optional<IWeapon> |
getWeapon() |
Retrieve the weapon stored in this slot.
|
void |
setWeapon(IWeapon weapon) |
Set or unset a weapon in the slot.
|
ESide getSide()
java.util.Optional<IWeapon> getWeapon()
void setWeapon(IWeapon weapon)
null will unset the weapon.weapon - to place in the the slotjavafx.geometry.Point2D getOffset()
int getId()
Copyright © 2011-2018 Sahits GmbH. All Rights Reserved.