public IArea AddArea(Guid guid, string displayName, int minLevel, int maxLevel, string builders, string credits) { IArea area = new Area.Area(displayName, minLevel, maxLevel, builders, credits); _areas.Add(area); return(area); }
/// <summary> /// Create Player and place it on the "StartGame" spot on area /// </summary> /// <param name="texture">Texture for player</param> /// <param name="rows">Row count for texture</param> /// <param name="columns">Column count for texture</param> /// <param name="parea">Area/Stage</param> public Player(Texture2D texture, int rows, int columns, Area.Area parea, string oldArenaName) { movingKeys = new[] { Keys.Left, Keys.Right, Keys.Up, Keys.Down }; interactKeys = new[] { Keys.Space }; myArea = parea; Texture = texture; Rows = rows; Columns = columns; totalFrames = Rows * Columns; IsOnEventBlock = false; eventToTrigger = new AreaEvent(); ps = GetStartPointOfArea(oldArenaName); listAnimation = new Dictionary <Direction, Animation> { { Direction.UP, CreateWalkAnimation(Direction.UP) }, { Direction.DOWN, CreateWalkAnimation(Direction.DOWN) }, { Direction.LEFT, CreateWalkAnimation(Direction.LEFT) }, { Direction.RIGHT, CreateWalkAnimation(Direction.RIGHT) } }; currentAnimation = listAnimation[ps.dir]; }