クラス Twinkle
java.lang.Object
net.trpfrog.medipro_game.symbol.Symbol
net.trpfrog.medipro_game.space.symbols.Twinkle
- すべての実装されたインタフェース:
TimeLimited
public class Twinkle extends Symbol implements TimeLimited
-
ネストされたクラスの概要
インタフェースから継承されたネストされたクラス/インタフェース net.trpfrog.medipro_game.util.TimeLimited
TimeLimited.Impl
-
コンストラクタの概要
-
メソッドの概要
修飾子とタイプ メソッド 説明 long
getDeadline()
boolean
isOutdated()
クラスから継承されたメソッド 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
-
コンストラクタの詳細
-
Twinkle
public Twinkle(double x, double y, int duringMillis, java.util.function.UnaryOperator<java.lang.Double> shineFunction)キラキラのオブジェクトを生成します。- パラメータ:
x
- 生成するマップ上のx座標y
- 生成するマップ上のy座標duringMillis
- 画面上に滞在する時間shineFunction
- 画面上に現れてから消えるまでを [0, 1] で表した値を受け取り、 それをもとにキラキラの大きさを決定する関数。 デフォルトは 10sin(t * 2pi)
-
Twinkle
public Twinkle(double x, double y, int duringMillis)
-
-
メソッドの詳細
-
isOutdated
public boolean isOutdated()- 定義:
isOutdated
インタフェース内TimeLimited
-
getDeadline
public long getDeadline()- 定義:
getDeadline
インタフェース内TimeLimited
-