Class Path

java.lang.Object
ch.epfl.cs107.play.engine.actor.Entity
ch.epfl.cs107.play.engine.actor.Path
All Implemented Interfaces:
Acoustics, Actor, Graphics, Updatable, Positionable

public class Path extends Entity
Path Overlay entity Draw a path on the DiscreteCoordinate Lines:
  • Constructor Details

    • Path

      public Path(Vector start, Queue<Orientation> path)
      Default Path Constructor
      Parameters:
      start - (Vector): the origin of the path
      path - (Queue): the successive orientation of the path
  • Method Details

    • draw

      public void draw(Canvas canvas)
      Description copied from interface: Graphics
      Renders itself on specified canvas.
      Parameters:
      canvas - target, not null