source.ucregents.playground.samplegame
Class Planet3
java.lang.Object
source.ucregents.playground.physics.BaseEntity
source.ucregents.playground.physics.MovingEntity
source.ucregents.playground.physics.RangedForceEntity
source.ucregents.playground.samplegame.Planet3
- All Implemented Interfaces:
- java.lang.Cloneable, IForceEntity
public class Planet3
- extends RangedForceEntity
A Planet1 is a MovingEntity with a Planet3 image
and with a mass of 50000kg, and friction coefficients of 1
Constructor Summary |
Planet3()
|
Planet3(double x,
double y,
double dX,
double dY)
|
Planet3(java.awt.geom.Point2D.Double p,
javax.vecmath.Vector2d v)
|
Methods inherited from class source.ucregents.playground.physics.MovingEntity |
collide, collide, createNodes, getCurrentTickVelocity, getCurrentVelocity, getFrictionCoef_Kinetic, getFrictionCoef_Static, getMass, increaseVelocity, moveCurrentVelocity, moveVector, setCurrentTickVelocity, setCurrentVelocity, setFrictionCoef_Kinetic, setFrictionCoef_Static, setMass |
Methods inherited from class source.ucregents.playground.physics.BaseEntity |
getActualFrameDimensions, getAxes, getAxis, getBounciness, getCenterPoint, getFrameColor, getImageOffset, getName, getOrientation, getShape, getShapeColor, getShapeFrame, getSideVectors, getULPoint, getVertexCount, getVerticesCoordinates, isCircle, isOverlapping, isPolygon, isSelected, isVisible, OnCollisionWith, resetFrameColor, Scale, ScaleAroundCenter, setBounciness, setCenterPoint, setCenterPoint, setCollidible, setFrameColor, setImageOffset, setName, setOrientation, setSelected, setShapeColor, setULPoint, setULPoint, setVisible, toString, toXMLElement |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Planet3
public Planet3()
Planet3
public Planet3(double x,
double y,
double dX,
double dY)
Planet3
public Planet3(java.awt.geom.Point2D.Double p,
javax.vecmath.Vector2d v)
DefaultImageLocation
public java.lang.String DefaultImageLocation()
- Description copied from class:
RangedForceEntity
- Stores the default image location
- Overrides:
DefaultImageLocation
in class RangedForceEntity
isCollidible
public boolean isCollidible()
- Description copied from class:
RangedForceEntity
- Returns whether the entity is collidible
- Overrides:
isCollidible
in class RangedForceEntity
- Returns:
- true if can be collided with