Inits the controllers needed to start the game And holds the controllerviewmanager and updates it
Inheritance: DrawableGameComponent
Exemplo n.º 1
0
 public GamePlayController(ScreenManager screen, Map selectedMap)
     : base(screen)
 {
     this.players = new Dictionary<int, PlayerStatsController>();
     this.characterControllers = new List<CharacterController>();
     this.map = new MapController(screen, selectedMap);
 }
Exemplo n.º 2
0
 public CameraController(ScreenManager screen, Box zoomBox)
     : base(screen)
 {
     this.characters = new List<CharacterController>();
     this.camera = screen.ControllerViewManager.camera;
     this.zoomBox = zoomBox;
 }
Exemplo n.º 3
0
 public PlayerStatsController(ScreenManager screen, CharacterModel characterModel, GameOptions gameOptions)
     : base(screen)
 {
     this.PlayerStats = new PlayerStats(gameOptions.Lifes, characterModel.playerIndex);
     this.characterModel = characterModel;
     this.gameOptions = gameOptions;
 }
Exemplo n.º 4
0
 /// <summary>
 /// Constructs the powerup controller  
 /// </summary>
 /// <param name="dropZone">dropZone for powerups</param>
 public PowerUpController(ScreenManager screen, Box dropZone)
     : base(screen)
 {
     this.random = new Random();
     this.dropZone = dropZone;
     this.activePowerUps = new Dictionary<int, PowerUpStatus>();
     this.waitingPowerUps = new List<PowerUpStatus>();
 }
Exemplo n.º 5
0
 public MoveController(ScreenManager screen, CharacterStats characterStats, int index)
     : base(screen)
 {
     Img = new ImageController(Screen, characterStats.moveAnimations, 120, false);
     Img.FramesPerRow = 6;
     Img.SetFrameRectangle(100, 100);
     Img.OriginDefault = new Vector2(50, 50);
     moves = new List<MoveModel>();
     explotions = new List<Explotion>();
     playerIndex = index;
 }
Exemplo n.º 6
0
        public ImageController(ScreenManager screen, string assetName, int layer = 0, bool staticPosition = false)
            : base(screen)
        {
            this.assetName = assetName;
            this.imageModels = new List<ImageModel>();

            this.imageView = new ImageView(imageModels);
            this.imageView.Layer = layer;
            this.imageView.StaticPosition = staticPosition;

            this.imageQueue = new ConcurrentQueue<Tuple<bool, ImageModel>>();
        }
Exemplo n.º 7
0
 public GamepadController(ScreenManager screen, Player playerModel)
     : base(screen)
 {
     this.PlayerModel = playerModel;
     this.oldNavigations = new Queue<Tuple<TimeSpan, Vector2>>(8);
 }
Exemplo n.º 8
0
 public MapController(ScreenManager screen, Map currentMap)
     : base(screen)
 {
     this.boxes = new List<Body>();
     this.Model = currentMap;
 }
Exemplo n.º 9
0
 public OverlayMenuController(ScreenManager screen)
     : base(screen)
 {
 }
Exemplo n.º 10
0
 public MenuController(ScreenManager screen)
     : base(screen)
 {
     this.characterHover = new Dictionary<int, ImageModel>();
     this.playerHoversMap = new Dictionary<int, int>();
 }
Exemplo n.º 11
0
 /// <summary>
 /// Constructor is used when game play is over and GamePlayController creates the menu controller agian
 /// </summary>
 public MenuController(ScreenManager screen, List<PlayerStats> gameStats)
     : this(screen)
 {
     this.gameStats = gameStats;
     this.gameStatsText = new List<TextBox>();
 }
Exemplo n.º 12
0
 public SoundController(ScreenManager screen)
     : base(screen)
 {
     this.soundEffects = new List<SoundEffect>();
     this.soundLookUp = new Dictionary<string, Tuple<SoundEffect, SoundEffectInstance>>();
 }
Exemplo n.º 13
0
 public CharacterController(ScreenManager screen, GamepadController pad, Vector2 startPos, int countDown)
     : base(screen)
 {
     stats = pad.PlayerModel.SelectedCharacter;
     model = new CharacterModel(pad, startPos, countDown, stats);
     moves = new MoveController(Screen, stats, pad.PlayerIndex);
     this.pad = pad;
 }
Exemplo n.º 14
0
 public ImageController(ScreenManager screen, string assetName, Vector2 pos, int layer = 0, bool staticPosition = false)
     : this(screen, assetName, layer, staticPosition)
 {
     SetPosition(pos);
 }
Exemplo n.º 15
0
 public CursorController(ScreenManager screen)
     : base(screen)
 {
 }