カートの運行を制御して温度を下げずに運ぶシミュレーションゲームのような物
修订版 | 964cb508f932615e1ccc134b5c2e55251ef31869 (tree) |
---|---|
时间 | 2015-08-31 09:08:56 |
作者 | MirrgieRiana |
Commiter | MirrgieRiana |
Factory: tickSuperHighSpeedスタブ追加
@@ -48,6 +48,12 @@ | ||
48 | 48 | |
49 | 49 | } |
50 | 50 | |
51 | + // TODO | |
52 | + public double getDurationVoid() throws IllegalEntityIdException | |
53 | + { | |
54 | + return 1; | |
55 | + } | |
56 | + | |
51 | 57 | public abstract void draw(Graphics2D graphics) throws IllegalEntityIdException; |
52 | 58 | |
53 | 59 | public abstract void drawOverlay(Graphics2D graphics) throws IllegalEntityIdException; |
@@ -86,6 +86,26 @@ | ||
86 | 86 | } |
87 | 87 | } |
88 | 88 | |
89 | + // TODO | |
90 | + public void tickSuperHighSpeed() | |
91 | + { | |
92 | + tick(getNextSuperHighSpeedDuration()); | |
93 | + } | |
94 | + | |
95 | + private double getNextSuperHighSpeedDuration() | |
96 | + { | |
97 | + return primaries.stream() | |
98 | + .mapToDouble(primary -> { | |
99 | + try { | |
100 | + return primary.getDurationVoid(); | |
101 | + } catch (Exception e) { | |
102 | + return 1; | |
103 | + } | |
104 | + }) | |
105 | + .min() | |
106 | + .orElse(1); | |
107 | + } | |
108 | + | |
89 | 109 | @XStreamOmitField |
90 | 110 | private ArrayList<Runnable> listenersEditPrimaries; |
91 | 111 |