mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2025-01-18 23:46:28 +01:00
Fix WiredGame
This commit is contained in:
parent
ad3002209d
commit
1f3e81a8e4
@ -1,26 +1,25 @@
|
|||||||
package com.eu.habbo.habbohotel.games.wired;
|
package com.eu.habbo.habbohotel.games.wired;
|
||||||
|
|
||||||
import com.eu.habbo.habbohotel.games.Game;
|
import com.eu.habbo.habbohotel.games.*;
|
||||||
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.freeze.FreezeGame;
|
import com.eu.habbo.habbohotel.games.freeze.FreezeGame;
|
||||||
import com.eu.habbo.habbohotel.rooms.Room;
|
import com.eu.habbo.habbohotel.rooms.Room;
|
||||||
import com.eu.habbo.habbohotel.users.Habbo;
|
import com.eu.habbo.habbohotel.users.Habbo;
|
||||||
|
|
||||||
public class WiredGame extends Game {
|
public class WiredGame extends Game {
|
||||||
|
public GameState state = GameState.RUNNING;
|
||||||
|
|
||||||
public WiredGame(Room room) {
|
public WiredGame(Room room) {
|
||||||
super(GameTeam.class, GamePlayer.class, room, false);
|
super(GameTeam.class, GamePlayer.class, room, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void initialise() {
|
public void initialise() {
|
||||||
|
this.state = GameState.RUNNING;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
|
this.state = GameState.RUNNING;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@ -34,4 +33,14 @@ public class WiredGame extends Game {
|
|||||||
super.removeHabbo(habbo);
|
super.removeHabbo(habbo);
|
||||||
this.room.giveEffect(habbo, 0, -1);
|
this.room.giveEffect(habbo, 0, -1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void stop() {
|
||||||
|
this.state = GameState.RUNNING;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public GameState getState() {
|
||||||
|
return GameState.RUNNING;
|
||||||
|
}
|
||||||
}
|
}
|
@ -120,7 +120,7 @@ public class WiredEffectGiveScoreToTeam extends InteractionWiredEffect {
|
|||||||
|
|
||||||
this.points = packet.readInt();
|
this.points = packet.readInt();
|
||||||
this.count = packet.readInt();
|
this.count = packet.readInt();
|
||||||
this.teamColor = GameTeamColors.values()[packet.readInt() - 1];
|
this.teamColor = GameTeamColors.values()[packet.readInt()];
|
||||||
packet.readString();
|
packet.readString();
|
||||||
packet.readInt();
|
packet.readInt();
|
||||||
this.setDelay(packet.readInt());
|
this.setDelay(packet.readInt());
|
||||||
|
Loading…
Reference in New Issue
Block a user