public void Action() {
		players.Base ply = Game.player.get(currentplayer);
		if (ply.npc) {return;}
		if (ply.unitselected) {
			if (currentplayer==Game.units.get(ply.selectedunit).owner) {//Action
				if (Game.units.get(ply.selectedunit).moved&&!Game.units.get(ply.selectedunit).acted) {
					Game.units.get(ply.selectedunit).action(ply.selectx,ply.selecty);
					ply.unitselected=false;
				}
				else if (!Game.units.get(ply.selectedunit).moved) {//Move
					Game.units.get(ply.selectedunit).move(ply.selectx,ply.selecty);
				}
				else {ply.unitselected=false;}
			}
			else {ply.unitselected=false;}
		}
		else {
			if (!ply.FindUnit()) {
				ply.unitselected=false;
				ply.FindCity();
			}
		}
	}