Skip to content

Package: IGameMemoryCapacity

IGameMemoryCapacity

Coverage

1: package de.fhdw.gaming.ipspiel23.memory;
2:
3: /**
4: * Interface to determine the capacity of a memory.
5: * Capacity can be capped or unlimited. Optional usage of a default value.
6: *
7: */
8: public interface IGameMemoryCapacity {
9:
10: /**
11: * Returns if it's unlimited.
12: * @return
13: */
14: boolean isUnlimited();
15:
16: /**
17: * Returns if it's the default value.
18: * @return
19: */
20: boolean isDefault();
21:
22: /**
23: * Returns the capacity. Either the correct Integer value or -1 if it's unlimited.
24: * @return
25: */
26: int getCapacity();
27: }