Package pp.battleship.model
Schnittstelle Visitor<T>
- Typparameter:
T- the type of result returned by the visit methods
public interface Visitor<T>
An interface for implementing the Visitor pattern for different types of elements in the Battleship model.
-
Methodenübersicht
-
Methodendetails
-
visit
Visits a Shot element.- Parameter:
shot- the Shot element to visit- Gibt zurück:
- the result of visiting the Shot element
-
visit
Visits a Battleship element.- Parameter:
ship- the Battleship element to visit- Gibt zurück:
- the result of visiting the Battleship element
-