GoodAI.Modules.School.Worlds.RogueTeacher.GetActionVector C# (CSharp) Method

GetActionVector() private method

private GetActionVector ( Actions a ) : float[]
a Actions
return float[]
        private float[] GetActionVector(Actions a)
        {
            switch (a)
            {
                case Actions.NoMove:
                    return new float[] { 0f, 0f, 0f, 0f };
                case Actions.MoveLeft:
                    return new float[] { 0f, 1f, 0f, 0f };
                case Actions.MoveRight:
                    return new float[] { 1f, 0f, 0f, 0f };
                case Actions.MoveUp:
                    return new float[] { 0f, 0f, 1f, 0f };
                case Actions.MoveDown:
                    return new float[] { 0f, 0f, 0f, 1f };
            }
            throw new ArgumentException("Uknown action");
        }