クラス Car
java.lang.Object
net.trpfrog.medipro_game.symbol.Symbol
net.trpfrog.medipro_game.symbol.MovableSymbol
net.trpfrog.medipro_game.mini_game.race_game.symbols.Car
- すべての実装されたインタフェース:
Drawable
,Suspendable
public class Car extends MovableSymbol implements Drawable, Suspendable
-
フィールドの概要
フィールド 修飾子とタイプ フィールド 説明 int
MAX_SPEED
-
コンストラクタの概要
コンストラクタ コンストラクタ 説明 Car()
-
メソッドの概要
修飾子とタイプ メソッド 説明 void
accelerate(int a)
加速しますvoid
draw(java.awt.Graphics2D g)
MainViewに描画するpaintComponentの中身を定義します。void
resume()
動作の再開を定義します。void
suspend()
動作の停止を定義します。クラスから継承されたメソッド net.trpfrog.medipro_game.symbol.MovableSymbol
accelerate, getMaxSpeed, getMinSpeed, getSpeedPxPerSecond, getSpeedX, getSpeedY, getTimer, move, moveMilliseconds, setMaxSpeed, setMinSpeed, setSpeedPxPerSecond, start, stop
クラスから継承されたメソッド net.trpfrog.medipro_game.symbol.Symbol
calcSightLineX, calcSightLineY, createHitJudgementRectangle, createPoint, createTranslatedDrawer, equals, faceTo, faceTo, getAbsoluteHitBox, getAngleDegrees, getAngleRadians, getDrawer, getHitJudgeRectangle, getPoint, getPoint2D, getRelativeHitBox, getX, getY, hashCode, isTouched, isTouched, isTouched, setAngleDegrees, setDrawer, setLocation, setPoint, setRelativeHitBox, setRelativeHitJudgeRectangle, setX, setY, touches, translate, turnAnticlockwiseDegrees, turnClockwiseDegrees
クラスから継承されたメソッド java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
フィールド詳細
-
MAX_SPEED
public final int MAX_SPEED- 関連項目:
- 定数フィールド値
-
-
コンストラクタの詳細
-
Car
public Car()
-
-
メソッドの詳細
-
accelerate
public void accelerate(int a)加速します- パラメータ:
a
- 加速度
-
draw
public void draw(java.awt.Graphics2D g)インタフェースからコピーされた説明:Drawable
MainViewに描画するpaintComponentの中身を定義します。 -
suspend
public void suspend()インタフェースからコピーされた説明:Suspendable
動作の停止を定義します。- 定義:
suspend
インタフェース内Suspendable
-
resume
public void resume()インタフェースからコピーされた説明:Suspendable
動作の再開を定義します。- 定義:
resume
インタフェース内Suspendable
-