/// <summary>
        /// Create a sample
        /// </summary>
        protected BattleMap()
            : base()
        {
            RequireFocus     = true;
            MapSize          = new Point(10, 10);
            TileSize         = new Point(32, 32);
            ActiveLayerIndex = 0;
            ShowAllLayers    = true;

            IsFrozen      = false;
            OnlinePlayers = new OnlineConfiguration();

            GameTurn             = 0;
            ListTileSet          = new List <Texture2D>();
            ListBackgrounds      = new List <AnimationBackground>();
            ListBackgroundsPath  = new List <string>();
            ListForegrounds      = new List <AnimationBackground>();
            ListForegroundsPath  = new List <string>();
            ListActionMenuChoice = new ActionPanelHolder();
            ListMAPAttackTarget  = new Stack <Tuple <int, int> >();

            VictoryCondition   = "";
            LossCondition      = "";
            SkillPoint         = "";
            sndBattleThemeName = "";

            DicMapVariables   = new Dictionary <string, double>();
            MovementAnimation = new MovementAnimations();
            AttackPicker      = new AttacksMenu();

            ListMapScript     = new List <MapScript>();
            ListMapEvent      = new List <MapEvent>();
            DicCutsceneScript = new Dictionary <string, CutsceneScript>();
            DicRequirement    = new Dictionary <string, BaseSkillRequirement>();
            DicEffect         = new Dictionary <string, BaseEffect>();
            ListSubMap        = new List <BattleMap>();

            GlobalBattleContext = new BattleContext();

            #region Screen shaking

            ShakeCounter        = 0;
            ShakeRadiusMax      = 3;
            ShakeOffsetX        = 0;
            ShakeOffsetY        = 0;
            ShakeAngle          = RandomHelper.Next(360);
            ShakeAngleVariation = new Vector2(1, 0);

            #endregion
        }
Example #2
0
        public UnitPartsScreen(Roster PlayerRoster, FormulaParser ActiveParser)
            : base(PlayerRoster, ActiveParser)
        {
            CursorIndexUnitPart = 0;
            Stage = -1;
            ListTerrainChoices        = new List <string>();
            DicTerrainLetterAttribute = new Dictionary <string, char>();
            CurrentPagePart           = 1;
            PageMaxPart = (int)Math.Ceiling(SystemList.ListPart.Count / (double)MaxPerPagePart);

            DicRequirement          = new Dictionary <string, BaseSkillRequirement>();
            DicEffect               = new Dictionary <string, BaseEffect>();
            DicAutomaticSkillTarget = new Dictionary <string, AutomaticSkillTargetType>();
            DicManualSkillTarget    = new Dictionary <string, ManualSkillTarget>();
            GlobalBattleContext     = new BattleContext();
            GlobalQuickLoadContext  = new UnitQuickLoadEffectContext();
        }
 public BattleParams(BattleContext GlobalContext)
 {
     this.GlobalContext = GlobalContext;
     LocalContext       = new BattleContext();
 }