1 package nl.tudelft.goal.ut2004.visualizer.map;
2
3 import java.awt.Color;
4
5 import nl.tudelft.goal.ut2004.visualizer.timeline.map.IRenderableWorldObject;
6 import cz.cuni.amis.pogamut.base3d.worldview.object.Location;
7 import cz.cuni.amis.pogamut.unreal.communication.worldview.map.IUnrealWaypoint;
8
9 public class RenderableWaypoint implements IRenderableWorldObject {
10
11 private final IUnrealWaypoint waypoint;
12 private final Color color;
13 private final int glName;
14
15 public RenderableWaypoint(IUnrealWaypoint waypoint, int glName) {
16 this.waypoint = waypoint;
17 this.glName = glName;
18 this.color = Color.BLUE;
19 }
20
21 @Override
22 public Color getColor() {
23 return color;
24 }
25
26 @Override
27 public Object getDataSource() {
28 return waypoint;
29 }
30
31 @Override
32 public int getGLName() {
33 return glName;
34 }
35
36 @Override
37 public Location getLocation() {
38 return waypoint.getLocation();
39 }
40
41 }