mirror of
https://github.com/michaelrausch/Party-Parrots-At-Sea.git
synced 2026-05-09 06:18:44 +00:00
WIP: Yachts now power up upon collecting an item
Power up is speed boost x2 multiplier Lasts 10 seconds Do not stack #story[1250]
This commit is contained in:
@@ -53,6 +53,7 @@ public class ServerYacht {
|
||||
|
||||
//PowerUp
|
||||
private TokenType powerUp;
|
||||
private Long powerUpStartTime;
|
||||
|
||||
|
||||
public ServerYacht(String boatType, Integer sourceId, String hullID, String shortName,
|
||||
@@ -104,8 +105,17 @@ public class ServerYacht {
|
||||
location = geoPoint;
|
||||
}
|
||||
|
||||
public void setPowerUp(TokenType powerUp) {
|
||||
public void powerUp(TokenType powerUp) {
|
||||
this.powerUp = powerUp;
|
||||
powerUpStartTime = System.currentTimeMillis();
|
||||
}
|
||||
|
||||
public void powerDown() {
|
||||
this.powerUp = null;
|
||||
}
|
||||
|
||||
public Long getPowerUpStartTime() {
|
||||
return powerUpStartTime;
|
||||
}
|
||||
|
||||
public TokenType getPowerUp() {
|
||||
|
||||
Reference in New Issue
Block a user