Package Files

Class GamePiece

java.lang.Object
Files.RenderingStuff.SceneObjects.Mesh
Files.RenderingStuff.SceneObjects.Cube
Files.GamePiece
All Implemented Interfaces:
Files.RenderingStuff.SceneObject, Files.RenderingStuff.SceneObjects.MeshInterface

public class GamePiece extends Files.RenderingStuff.SceneObjects.Cube
  • Field Summary

    Fields inherited from class Files.RenderingStuff.SceneObjects.Mesh

    doRotate, faceColor, lineColor, rotation1, rotation2, scale, x, xVelocity, y, yVelocity, z, zVelocity
  • Constructor Summary

    Constructors
    Constructor
    Description
    GamePiece(String color, Integer playerNum)
    Constructs a gamepiece object
  • Method Summary

    Methods inherited from class Files.RenderingStuff.SceneObjects.Cube

    getFaceNumbers, getLineNumbers, getPoints, toString

    Methods inherited from class Files.RenderingStuff.SceneObjects.Mesh

    distanceTo, distanceTo, getDoRotate, getFaces, getNewPoints, getPosition, getRenderables, getRotation1, getRotation2, getScale, getX, getY, getZ, move, renderTick, rotate, setDoRotate, setPosition, setRotation, setRotation, setScale, setVelocities, tick

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • GamePiece

      public GamePiece(String color, Integer playerNum)
      Constructs a gamepiece object
      Parameters:
      color - color of the gamepiece when rendered
      playerNum - number of the player who owns the gamepiece