Пример #1
0
 public EnemyManager(PlayerManager playerManager, EntityManager entityManager)
 {
     Enemies = new List<Enemy>();
     PlayerManager = playerManager;
     EntityManager = entityManager;
     RandomGen = new Random();
 }
Пример #2
0
 public Player(PlayerIndex playerIndex, InputManager inputManager, PlayerManager playerManager)
 {
     PlayerIndex = playerIndex;
     this.inputManager = inputManager;
     this.playerManager = playerManager;
     Target = new ShootTarget(inputManager, this);
 }
Пример #3
0
 public Chaser(PlayerManager playermanager)
     : base(playermanager)
 {
     Speed = 3;
     Health = 25;
     FacingLeft = false;
     Attack = 3;
     AttackWaitTime = 0;
 }
Пример #4
0
 public Screen(IServiceProvider serviceProvider, String contentRootDirectory, InputManager inputManager,
     ScreenManager screenManager, PlayerManager playerManager)
 {
     ScreenState = ScreenStates.Hidden;
     ContentManager = new ContentManager(serviceProvider, contentRootDirectory);
     InputManager = inputManager;
     ScreenManager = screenManager;
     PlayerManager = playerManager;
 }
Пример #5
0
 public Swatter(PlayerManager playermanager)
     : base(playermanager)
 {
     Speed = 3;
     Health = 30;
     FacingLeft = true;
     AttackRange = new Vector2(50, 50);
     AttackHitbox = new Rectangle((int)(Position.X - AttackRange.X), (int)Position.Y - 22, (int)AttackRange.X, (int)AttackRange.Y);
     //Hitbox that will swat passes away
     Vector2 DisruptPassRange = new Vector2(20, 100);
     DisruptPassHitbox = new Rectangle((int)(Position.X + DisruptPassRange.X), (int)(Position.Y + DisruptPassRange.Y), (int)DisruptPassRange.X, (int)DisruptPassRange.Y);
 }
Пример #6
0
 public StageOnePartOneScreen(IServiceProvider serviceProvider, String contentRootDirectory, InputManager inputManager,
     ScreenManager screenManager, PlayerManager playerManager)
     : base(serviceProvider, contentRootDirectory, inputManager, screenManager, playerManager)
 {
     entityManager = new EntityManager();
     playerManager.EntityManager = entityManager;
     enemyManager = new EnemyManager(playerManager, entityManager);
     playerManager.EnemyManager = enemyManager;
     wrapAroundXDest = 1280;
     wrapAroundRectangle = new Rectangle(0, 0, ScreenManager.ScreenWidth, ScreenManager.ScreenHeight);
     backgroundRectangle = new Rectangle(0, 0, ScreenManager.ScreenWidth, ScreenManager.ScreenHeight);
 }
Пример #7
0
 public Character(Player player, InputManager inputManager, PlayerManager playerManager)
     : base()
 {
     Player = player;
     HasBall = player.PlayerIndex == PlayerIndex.One;
     InputManager = inputManager;
     PlayerManager = playerManager;
     IsInvincible = false;
     CurrentPass = Pass.StraightPass;
     CharacterState = CharacterStates.DefaultState;
     Position.Y = 310 + 100 * (int)Player.PlayerIndex;
     PickAggroBox = new Rectangle();
     PickDefendingBox = new Rectangle();
 }
Пример #8
0
 public BasicEnemy(PlayerManager playermanager)
     : base(playermanager)
 {
     surroundDistance = 300;
     Speed = 2;
     Health = 25;
     FacingLeft = true;
     Attack = 4;
     AttackWaitTime = 0;
     inGoodPositionTimer = 0;
     waitTime = GetRandomInt(80, 160);
     waitFlag = false;
     EnemyState = EnemyStates.Chase;
 }
Пример #9
0
        public YellowMamba() : base()
        {
            graphics = new GraphicsDeviceManager(this);
            graphics.PreferredBackBufferWidth = ScreenWidth;
            graphics.PreferredBackBufferHeight = ScreenHeight;

            Content.RootDirectory = "Content/" + AssetType;

            inputManager = new InputManager();
            screenManager = new ScreenManager(inputManager);
            screenManager.ScreenWidth = ScreenWidth;
            screenManager.ScreenHeight = ScreenHeight;
            playerManager = new PlayerManager(inputManager);
        }
Пример #10
0
 public Jimothy(Player player, InputManager inputManager, PlayerManager playerManager)
     : base(player, inputManager, playerManager)
 {
     Speed = 5;
     Health = 30;
     MaxHealth = 30;
     PickHealth = 30;
     MaxPickHealth = 30;
     PickHealthRegenerationTimer = 0;
     PickHealthRegenerationRate = 5;
     Attack = 10;
     ShootAttack = 5;
     FacingLeft = false;
     AttackRange = new Vector2(40, 10);
     Tint = Color.White;
 }
Пример #11
0
        public MainScreen(IServiceProvider serviceProvider, String contentRootDirectory, InputManager inputManager,
            ScreenManager screenManager, PlayerManager playerManager)
            : base(serviceProvider, contentRootDirectory, inputManager, screenManager, playerManager)
        {

        }
Пример #12
0
 public Enemy(PlayerManager playerManager) 
      : base()
 {
     Ranged = false;
     PlayerManager = playerManager;
 }