Ejemplo n.º 1
0
        /// <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;
        }
Ejemplo n.º 2
0
 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;
 }