ch.sahits.game.openpatrician.model.building
Interface IWeaponStorage

All Known Implementing Classes:
WeaponStorage

public interface IWeaponStorage

Define the stored amount of weapons

Author:
Andi Hotz, (c) Sahits GmbH, 2012 Created on Jul 25, 2012

Method Summary
 int getWeapon(IWeapon weapon)
          Retrieve the amount of weapons in storage
 boolean hasWeapons()
          check if there are any weapons stored
 int update(IWeapon weapon, int amount)
          Move weapons in or out of storage
 

Method Detail

getWeapon

int getWeapon(IWeapon weapon)
Retrieve the amount of weapons in storage

Parameters:
weapon -
Returns:

update

int update(IWeapon weapon,
           int amount)
Move weapons in or out of storage

Parameters:
weapon - type of weapon
amount - to be moved (positive means into the storage, negative out of the storage)
Returns:
amount that is moved

hasWeapons

boolean hasWeapons()
check if there are any weapons stored

Returns:


Copyright © 2011-2012 Sahits GmbH. All Rights Reserved.