From 6a44b074f0169a1b0f9e92347af929c5e471746e Mon Sep 17 00:00:00 2001 From: Camil Staps Date: Sat, 18 Apr 2015 13:44:44 +0200 Subject: Reorganised projects --- Week4 Drawing loipes/src/oo15loipe/InfoLoipe.java | 35 +++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 Week4 Drawing loipes/src/oo15loipe/InfoLoipe.java (limited to 'Week4 Drawing loipes/src/oo15loipe/InfoLoipe.java') diff --git a/Week4 Drawing loipes/src/oo15loipe/InfoLoipe.java b/Week4 Drawing loipes/src/oo15loipe/InfoLoipe.java new file mode 100644 index 0000000..a1cf182 --- /dev/null +++ b/Week4 Drawing loipes/src/oo15loipe/InfoLoipe.java @@ -0,0 +1,35 @@ +package oo15loipe; + +/** + * Interface for a class describing a Loipe + * + * @author Camil Staps, s4498062, Thijs Heijligenberg, s4451414 + */ +public interface InfoLoipe { + + public int getWidth( ) ; // grootte in oost􀀀west r i cht ing + public int getHeight( ) ; // grootte in noord􀀀zuid r i cht ing + + /** + * Get the fragment at position (x, y) + * + * @param x + * @param y + * @return + */ + public Fragment getFragment( int x, int y) ; // fragment van de loipe op po s i t i e (x , y) + + /** + * Get the first position of the loipe + * + * @return + */ + public Punt start( ) ; // Het startpunt op de kaart + + /** + * Get the next position in the loipe + * @return + */ + public Punt stap( ) ; // het volgende punt op de route +} + -- cgit v1.2.3