Merge commit
This commit is contained in:
@@ -172,8 +172,8 @@ private void handleGame(Notification notification) {
|
||||
} else if (notification instanceof ThrowPieceNotification n) {
|
||||
boardHandler.throwPiece(n.getPieceId(), n.getThrowColor());
|
||||
waitForAnimation = true;
|
||||
} else if (notification instanceof NoShieldNotification n) {
|
||||
boardHandler.unshieldPiece(n.getPieceId());
|
||||
} else if (notification instanceof RemoveShieldNotification n) {
|
||||
boardHandler.unshieldPiece(n.getPieceUuid());
|
||||
} else if (notification instanceof PlayCardNotification n) {
|
||||
if(n.getCard() == BonusCard.TURBO) {
|
||||
guiHandler.turbo();
|
||||
|
||||
@@ -529,7 +529,6 @@ private void throwPiece(UUID uuid){
|
||||
* @param uuid the UUID of the piece to shield
|
||||
*/
|
||||
public void shieldPiece(UUID uuid){
|
||||
|
||||
pieces.get(uuid).activateShield();
|
||||
}
|
||||
|
||||
|
||||
@@ -113,6 +113,7 @@ public Vector3f getLocation(){
|
||||
protected void controlUpdate(float delta) {
|
||||
if(shieldRing != null){
|
||||
shieldRing.rotate(0, 0, delta * SHIELD_SPEED);
|
||||
shieldRing.setLocalTranslation(spatial.getLocalTranslation().add(new Vector3f(0,0,SHIELD_Z)));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user