Fix WiredGame

This commit is contained in:
Alejandro 2019-08-04 16:42:18 +03:00
parent ad3002209d
commit 1f3e81a8e4
2 changed files with 16 additions and 7 deletions

View File

@ -1,26 +1,25 @@
package com.eu.habbo.habbohotel.games.wired;
import com.eu.habbo.habbohotel.games.Game;
import com.eu.habbo.habbohotel.games.GamePlayer;
import com.eu.habbo.habbohotel.games.GameTeam;
import com.eu.habbo.habbohotel.games.GameTeamColors;
import com.eu.habbo.habbohotel.games.*;
import com.eu.habbo.habbohotel.games.freeze.FreezeGame;
import com.eu.habbo.habbohotel.rooms.Room;
import com.eu.habbo.habbohotel.users.Habbo;
public class WiredGame extends Game {
public GameState state = GameState.RUNNING;
public WiredGame(Room room) {
super(GameTeam.class, GamePlayer.class, room, false);
}
@Override
public void initialise() {
this.state = GameState.RUNNING;
}
@Override
public void run() {
this.state = GameState.RUNNING;
}
@Override
@ -34,4 +33,14 @@ public class WiredGame extends Game {
super.removeHabbo(habbo);
this.room.giveEffect(habbo, 0, -1);
}
@Override
public void stop() {
this.state = GameState.RUNNING;
}
@Override
public GameState getState() {
return GameState.RUNNING;
}
}

View File

@ -120,7 +120,7 @@ public class WiredEffectGiveScoreToTeam extends InteractionWiredEffect {
this.points = packet.readInt();
this.count = packet.readInt();
this.teamColor = GameTeamColors.values()[packet.readInt() - 1];
this.teamColor = GameTeamColors.values()[packet.readInt()];
packet.readString();
packet.readInt();
this.setDelay(packet.readInt());