|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface IWeaponStorage
Define the stored amount of weapons
| 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 |
|---|
int getWeapon(IWeapon weapon)
weapon -
int update(IWeapon weapon,
int amount)
weapon - type of weaponamount - to be moved (positive means into the storage, negative out of the storage)
boolean hasWeapons()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||