Beispiel #1
0
        public void updateCombatPosition()
        {
            Vector3 position = Vector3.Zero;

            if (IsMoving && (movePath != null) && (movePath.Count() > 0))
            {
                position = movePath[0];
            }
            else
            {
                // Put the character in the middle of the cell
                position = MyBoard.putGameEntityOnCell(this, combatLocation.i, combatLocation.j);
            }

            combatLocation.position = position;
            sprite.updateLocation(combatLocation);
        }