Class Flag

java.lang.Object
  |
  +--Flag

public class Flag
extends java.lang.Object

This class is used to represent all flags of the map

  • the absolute postion
  • the name

    Version:
    1.00
    Author:
    Daniel Förderer and Moritz Steiner

    Field Summary
    private  java.lang.String name
               
    private  java.awt.geom.Point2D.Double position
               
     
    Constructor Summary
    (package private) Flag(java.lang.String name, java.awt.geom.Point2D.Double position)
              constructor for a Flag object
     
    Method Summary
     java.lang.String getName()
              gets the name of the flag
     java.awt.geom.Point2D.Double getPosition()
              gets the position of the flag
     
    Methods inherited from class java.lang.Object
    , clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
     

    Field Detail

    position

    private java.awt.geom.Point2D.Double position

    name

    private java.lang.String name
    Constructor Detail

    Flag

    Flag(java.lang.String name,
         java.awt.geom.Point2D.Double position)
    constructor for a Flag object
    Method Detail

    getPosition

    public java.awt.geom.Point2D.Double getPosition()
    gets the position of the flag

    getName

    public java.lang.String getName()
    gets the name of the flag