Back to project page Stickman.
The source code is released under:
Apache License
If you think the Android project Stickman listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.wireframe.stickman; //from w ww . j a v a 2 s . c om public class GameRules { public static int redKills = 0; public static int blueKills = 0; public static void kill(Character victim, Character killer){ World.removeCharacter(victim); // Player dies if( victim == World.getPlayer() ){ System.err.println("PLAYER DIED"); System.err.println("PLAYER DIED"); System.err.println("PLAYER DIED"); System.err.println("PLAYER DIED"); } // Team 1 dies else if( victim.getTeamNumber() == Character.TEAM_BLUE ){ if( killer.getTeamNumber() == Character.TEAM_BLUE ){ blueKills--; } else if( killer.getTeamNumber() == Character.TEAM_RED ){ redKills++; } } // Team 2 dies else if( victim.getTeamNumber() == Character.TEAM_RED ){ if( killer.getTeamNumber() == Character.TEAM_RED ){ redKills--; } else if( killer.getTeamNumber() == Character.TEAM_BLUE ){ blueKills++; } } } }