using System.Collections;
using System.Collections.Generic;
using UnityEngine;

namespace RelicGGJ
{
    public class Position
    {
        public Position(uint a, uint b)
        {
            x = a;
            y = b;
        }
        public uint x { get; set; }
        public uint y { get; set; }
    }

    public enum playerAction : uint
    {
        DO_NOTHING = 0,
        MOVE_UP,
        MOVE_UP_RIGHT,
        MOVE_RIGHT,
        MOVE_DOWN_RIGHT,
        MOVE_DOWN,
        MOVE_DOWN_LEFT,
        MOVE_LEFT,
        MOVE_UP_LEFT,
        SONAR
    }

    public enum enteredFrom
    {
        NONE,
        DOWN,
        UP
    }

    public enum gridLayer
    {
        BACKGROUND,
        STATIC,
        DECORATION,
        EXITS,
        ENEMIES,
        PLAYER,
        ITEMS,
        COUNT
    }

    public static class Utility
    {
        // Calculates Manhattan distances. Swap this out for something else if you want euclidean or whatever.
        public static float CalcDistance(Vector2 origin, Vector2 destination)
        {
            return Mathf.Abs(destination.x - origin.x) + Mathf.Abs(destination.y - origin.y);
        }
    }
    
}
