mirror of
https://athene2.informatik.unibw-muenchen.de/progproj/gruppen-ht24/Gruppe-02.git
synced 2024-11-25 02:19:45 +01:00
added Visitors
This commit is contained in:
parent
25305760c5
commit
dca23151a8
@ -0,0 +1,7 @@
|
|||||||
|
package pp.monopoly.model;
|
||||||
|
|
||||||
|
import pp.monopoly.model.card.Card;
|
||||||
|
|
||||||
|
public interface CardVisitor<T> {
|
||||||
|
T visit(Card c);
|
||||||
|
}
|
@ -0,0 +1,21 @@
|
|||||||
|
package pp.monopoly.model;
|
||||||
|
|
||||||
|
import pp.monopoly.model.fields.BuildingProperty;
|
||||||
|
import pp.monopoly.model.fields.EventField;
|
||||||
|
import pp.monopoly.model.fields.FoodField;
|
||||||
|
import pp.monopoly.model.fields.GateField;
|
||||||
|
import pp.monopoly.model.fields.GoField;
|
||||||
|
import pp.monopoly.model.fields.GulagField;
|
||||||
|
import pp.monopoly.model.fields.TestStreckeField;
|
||||||
|
import pp.monopoly.model.fields.WacheField;
|
||||||
|
|
||||||
|
public interface FieldVisitor<T> {
|
||||||
|
T visit(BuildingProperty field);
|
||||||
|
T visit(FoodField field);
|
||||||
|
T visit(GateField field);
|
||||||
|
T visit(GulagField field);
|
||||||
|
T visit(TestStreckeField field);
|
||||||
|
T visit(EventField field);
|
||||||
|
T visit(WacheField field);
|
||||||
|
T visit(GoField field);
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user