1 package org.hedgewars.hedgeroid.Datastructures; |
|
2 |
|
3 import android.content.res.Resources; |
|
4 |
|
5 public final class RoomlistRoom { |
|
6 public final String name, map, scheme, weapons, owner; |
|
7 public final int playerCount, teamCount; |
|
8 public final boolean inProgress; |
|
9 |
|
10 public RoomlistRoom(String name, String map, String scheme, String weapons, |
|
11 String owner, int playerCount, int teamCount, boolean inProgress) { |
|
12 this.name = name; |
|
13 this.map = map; |
|
14 this.scheme = scheme; |
|
15 this.weapons = weapons; |
|
16 this.owner = owner; |
|
17 this.playerCount = playerCount; |
|
18 this.teamCount = teamCount; |
|
19 this.inProgress = inProgress; |
|
20 } |
|
21 |
|
22 public String formatMapName(Resources res) { |
|
23 return MapRecipe.formatMapName(res, map); |
|
24 } |
|
25 |
|
26 @Override |
|
27 public String toString() { |
|
28 return "RoomlistRoom [name=" + name + ", map=" + map + ", scheme=" |
|
29 + scheme + ", weapons=" + weapons + ", owner=" + owner |
|
30 + ", playerCount=" + playerCount + ", teamCount=" + teamCount |
|
31 + ", inProgress=" + inProgress + "]"; |
|
32 } |
|
33 } |
|