/// <summary> /// Naklonovani klice s urcenim novych souradnice /// </summary> /// <param name="x">Nova souradnice X</param> /// <param name="y">Nova souradnice Y</param> /// <returns></returns> public GameKey Clone(int x, int y) { GameKey unitClone = new GameKey(index, this.animatedSprite, x, y); GameKey unitClone2 = new GameKey(unitClone, x, y); return unitClone2; }
public GameKey(GameKey klic, int x, int y) { this.index = klic.index; Cell = new Point(x, y); Position = Session.FrontMap.CellToVector(Cell) + Session.Camera.Position; animatedSprite = klic.animatedSprite; }