(ActionEvent arg0)
| 172 | } |
| 173 | |
| 174 | public void actionPerformed(ActionEvent arg0) |
| 175 | { |
| 176 | if(arg0.getSource() == switchSide) |
| 177 | { |
| 178 | graphwar.getGameData().switchSide(player); |
| 179 | } |
| 180 | else if(arg0.getSource() == removePlayer) |
| 181 | { |
| 182 | graphwar.getGameData().removePlayer(player); |
| 183 | } |
| 184 | else if(isAddSoldier(arg0.getSource())) |
| 185 | { |
| 186 | graphwar.getGameData().addSoldier(player); |
| 187 | } |
| 188 | } |
| 189 | |
| 190 | public void mouseClicked(MouseEvent arg0) |
| 191 | { |
nothing calls this directly
no test coverage detected