You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
595 B

  1. package roadtrip.model;
  2. import com.jme3.math.Vector3f;
  3. /**
  4. * Created by dejvino on 21.01.2017.
  5. */
  6. public class MapObjectInstance
  7. {
  8. private Vector3f position;
  9. private String type;
  10. public MapObjectInstance(String type, Vector3f position)
  11. {
  12. this.type = type;
  13. this.position = new Vector3f(position);
  14. }
  15. public Vector3f getPosition()
  16. {
  17. return new Vector3f(position);
  18. }
  19. public void setPosition(Vector3f position)
  20. {
  21. this.position = new Vector3f(position);
  22. }
  23. public String getType() {
  24. return type;
  25. }
  26. }