public bool moveChess(Vector3i position) { GameChess gc = getGameChessRef(position); //如果有这个棋子并且有移动技能 if (gc != null && gc.hasSuchKindSkill(EffectType.move)) { //移动并且告诉Judgement去掉其他移动技能 //先把这个棋子从原来GameChessList那里抹杀掉 _GameChessList.Remove(gc); //然后从ChessBoard层面也抹杀掉 _ChessBoard.removeChess(gc.getPosition()); //然后加入新棋子 Skill sk = gc.findSkill(EffectType.move); Chess nc = _ChessBoard.placeChess(new Chess(gc.getPlayerID(), gc.getDirection(), sk.getEffectPosition())); _GameChessList.Add(new GameChess(nc)); Vector3i pos = getPointedPosition(position, gc.getDirection()); Rule.removeNewSkill(EffectType.move, pos, this); return(true); } return(false); }