Skip to content

Package: Key

Key

Coverage

1: package de.fhdw.gaming.memory;
2:
3:
4: import de.fhdw.gaming.core.domain.Player;
5: import de.fhdw.gaming.core.domain.Strategy;
6:
7: /**
8: * A Key object that identifies something by a combination of two players and a strategy.
9: */
10: public interface Key {
11:
12: /**
13: * Returns the player "remembering" the outcomes. The strategy saved here belongs to this player.
14: */
15: public Player<?> getPlayer();
16:
17: /**
18: * Returns the opponent of the active player.
19: */
20: public Player<?> getOpponent();
21:
22: /**
23: * Returns the strategy of the active player, used against the opponent.
24: */
25: public Strategy<?, ?, ?> getStrategy();
26:
27: }