Class SmallWeaponSlot
- java.lang.Object
-
- ch.sahits.game.openpatrician.model.ship.SmallWeaponSlot
-
- All Implemented Interfaces:
IWeaponSlot
public class SmallWeaponSlot extends java.lang.Object implements IWeaponSlot
Weapon slot for a small weapon.- Author:
- Andi Hotz, (c) Sahits GmbH, 2017 Created on Aug 15, 2017
-
-
Constructor Summary
Constructors Constructor Description SmallWeaponSlot()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private void
assertWeaponType(IWeapon weapon)
void
setWeapon(IWeapon weapon)
Place a small weapon in the slot.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface ch.sahits.game.openpatrician.model.ship.IWeaponSlot
getId, getOffset, getSide, getWeapon
-
-
-
-
Method Detail
-
setWeapon
public void setWeapon(IWeapon weapon)
Place a small weapon in the slot. If null is passed the slot is emptied.- Specified by:
setWeapon
in interfaceIWeaponSlot
- Parameters:
weapon
- to be placed
-
assertWeaponType
private void assertWeaponType(IWeapon weapon)
-
-