public Map2D(BattleMap Map, List <AnimationBackground> ListBackgrounds, List <AnimationBackground> ListForegrounds) { this.Map = Map; MapOverlay = new DayNightCycleColorOnly(); DicDrawablePointPerColor = new Dictionary <Color, List <Vector3> >(); Depth = 1f; ListTileSet = Map.ListTileSet; this.ListBackgrounds = ListBackgrounds; this.ListForegrounds = ListForegrounds; }
/// <summary> /// Create a sample /// </summary> protected BattleMap() : base() { MapSize = new Point(10, 10); TileSize = new Point(32, 32); ShowLayerIndex = -1; IsFrozen = false; OnlinePlayers = new OnlineConfiguration(); GameTurn = 0; MapOverlay = new DayNightCycleColorOnly(); ListTileSet = new List <Texture2D>(); ListBackground = new List <AnimationBackground>(); ListBackgroundsPath = new List <string>(); ListForeground = new List <AnimationBackground>(); ListForegroundsPath = new List <string>(); ListMAPAttackTarget = new Stack <Tuple <int, int> >(); Description = ""; VictoryCondition = ""; LossCondition = ""; SkillPoint = ""; sndBattleThemeName = ""; DicMapVariables = new Dictionary <string, double>(); MovementAnimation = new MovementAnimations(); ListMapScript = new List <MapScript>(); ListMapEvent = new List <MapEvent>(); DicCutsceneScript = new Dictionary <string, CutsceneScript>(); DicInteractiveProp = new Dictionary <string, InteractiveProp>(); DicRequirement = new Dictionary <string, BaseSkillRequirement>(); DicEffect = new Dictionary <string, BaseEffect>(); DicAutomaticSkillTarget = new Dictionary <string, AutomaticSkillTargetType>(); DicManualSkillTarget = new Dictionary <string, ManualSkillTarget>(); ListSubMap = new List <BattleMap>(); DicSpawnSquadByPlayer = new Dictionary <string, List <Squad> >(); ListMultiplayerColor = new List <Color>(); GlobalBattleContext = new BattleContext(); GlobalQuickLoadContext = new UnitQuickLoadEffectContext(); #region Screen shaking ShakeCounter = 0; ShakeRadiusMax = 3; ShakeOffsetX = 0; ShakeOffsetY = 0; ShakeAngle = RandomHelper.Next(360); ShakeAngleVariation = new Vector2(1, 0); #endregion }
public ConquestMap2D(ConquestMap Map, List <AnimationBackground> ListBackgrounds, List <AnimationBackground> ListForegrounds, BattleMapOverlay MapOverlay, BinaryReader BR) : base(Map, ListBackgrounds, ListForegrounds, MapOverlay) { ActiveMap = Map; DrawableTile[,] ArrayTile = new DrawableTile[MapSize.X, MapSize.Y]; for (int X = MapSize.X - 1; X >= 0; --X) { for (int Y = MapSize.Y - 1; Y >= 0; --Y) { ArrayTile[X, Y] = new DrawableTile(new Rectangle(0, 0, ActiveMap.TileSize.X, ActiveMap.TileSize.Y), 0); } } ReplaceGrid(ArrayTile); Load(BR); }
public Map2D(BattleMap Map, List <AnimationBackground> ListBackgrounds, List <AnimationBackground> ListForegrounds, BattleMapOverlay MapOverlay) : this(Map, ListBackgrounds, ListForegrounds) { this.MapOverlay = MapOverlay; }