PvP game over condition
This commit is contained in:
@@ -27,7 +27,11 @@ public class EventType{
|
||||
}
|
||||
|
||||
public static class GameOverEvent implements Event{
|
||||
public final Team winner;
|
||||
|
||||
public GameOverEvent(Team winner){
|
||||
this.winner = winner;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
package io.anuke.mindustry.game;
|
||||
|
||||
import com.badlogic.gdx.graphics.Color;
|
||||
import io.anuke.ucore.util.Bundles;
|
||||
|
||||
public enum Team{
|
||||
none(Color.DARK_GRAY),
|
||||
@@ -18,4 +19,8 @@ public enum Team{
|
||||
this.color = color;
|
||||
intColor = Color.rgba8888(color);
|
||||
}
|
||||
|
||||
public String localized(){
|
||||
return Bundles.get("team." + name() + ".name");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user