project_files/Android-build/SDL-android-project/src/org/hedgewars/hedgeroid/TeamlistFragment.java
changeset 7568 75ba91f14ed5
parent 7508 763d3961400b
child 7582 714310efad8f
equal deleted inserted replaced
7566:57d343ee382f 7568:75ba91f14ed5
    94 		}
    94 		}
    95 		return names;
    95 		return names;
    96 	}
    96 	}
    97 	
    97 	
    98 	public void onColorClicked(TeamInGame team) {
    98 	public void onColorClicked(TeamInGame team) {
    99 		netplay.sendTeamColorIndex(team.team.name, (team.ingameAttribs.colorIndex+1)%TeamIngameAttributes.TEAM_COLORS.length);
    99 		netplay.changeTeamColorIndex(team.team.name, (team.ingameAttribs.colorIndex+1)%TeamIngameAttributes.TEAM_COLORS.length);
   100 	}
   100 	}
   101 	
   101 	
   102 	public void onHogcountClicked(TeamInGame team) {
   102 	public void onHogcountClicked(TeamInGame team) {
   103 		int newHogCount = team.ingameAttribs.hogCount+1;
   103 		int newHogCount = team.ingameAttribs.hogCount+1;
   104 		if(newHogCount>Team.HEDGEHOGS_PER_TEAM) {
   104 		if(newHogCount>Team.HEDGEHOGS_PER_TEAM) {
   105 			newHogCount = 1;
   105 			newHogCount = 1;
   106 		}
   106 		}
   107 		netplay.sendTeamHogCount(team.team.name, newHogCount);
   107 		netplay.changeTeamHogCount(team.team.name, newHogCount);
   108 	}
   108 	}
   109 	
   109 	
   110 	public void onTeamClicked(TeamInGame team) {
   110 	public void onTeamClicked(TeamInGame team) {
   111 		netplay.sendRemoveTeam(team.team.name);
   111 		netplay.sendRemoveTeam(team.team.name);
   112 	}
   112 	}