/// <summary>
 /// The main entry point for the application.
 /// </summary>
 static void Main(string[] args)
 {
     using (PrisonGame game = new PrisonGame())
     {
         game.Run();
     }
 }
 /// <summary>
 /// Constructor. Creates an object for a section.
 /// </summary>
 /// <param name="game"></param>
 /// <param name="section"></param>
 public PrisonModel(PrisonGame game, int section)
 {
     state = DoorStates.Closed;
     this.game = game;
     this.section = section;
     this.asset = "AntonPhibes" + section.ToString();
 }
Exemple #3
0
 /// <summary>
 /// Constructor. Creates an object for a section.
 /// </summary>
 /// <param name="game"></param>
 /// <param name="section"></param>
 public PrisonModel(PrisonGame game, int section)
 {
     state        = DoorStates.Closed;
     this.game    = game;
     this.section = section;
     this.asset   = "AntonPhibes" + section.ToString();
 }
Exemple #4
0
 /// <summary>
 /// The main entry point for the application.
 /// </summary>
 static void Main(string[] args)
 {
     using (PrisonGame game = new PrisonGame())
     {
         game.Run();
     }
 }
Exemple #5
0
        public Player(PrisonGame game, Camera inCamera)
        {
            this.game = game;
            this.camera = inCamera;
            dalek = new AnimatedModel(game, "dalek");
            SetPlayerTransform();

            playerCollision = new BoundingCylinder(game, location);
        }
        public AnimatedModel(PrisonGame game, string asset)
        {
            this.game = game;
            this.asset = asset;

            skinTransforms = new Matrix[57];
            for (int i = 0; i < skinTransforms.Length; i++)
            {
                skinTransforms[i] = Matrix.Identity;
            }
        }
        public Alien(PrisonGame game)
        {
            this.game = game;
            spit = new Spit(this.game);
            model = new AnimatedModel(game, "Alien");
            model.AddAssetClip("catcheat", "Alien-catcheat");
            model.AddAssetClip("stance", "Alien-stance");
            model.AddAssetClip("tantrum", "Alien-trantrum");
            model.AddAssetClip("ob", "Alien-ob");

            SetAlienTransform();
        }
Exemple #8
0
 public Player(PrisonGame game)
 {
     this.game = game;
     victoria = new AnimatedModel(game, "Victoria");
     victoria.AddAssetClip("dance", "Victoria-dance");
     victoria.AddAssetClip("stance", "Victoria-stance");
     victoria.AddAssetClip("walk", "Victoria-walk");
     victoria.AddAssetClip("walkstart", "Victoria-walkstart");
     victoria.AddAssetClip("walkloop", "Victoria-walkloop");
     victoria.AddAssetClip("rightturn", "Victoria-rightturn");
     victoria.AddAssetClip("leftturn", "Victoria-leftturn");
     SetPlayerTransform();
 }
Exemple #9
0
        public AlienParent(PrisonGame game)
        {
            this.game = game;
            alien = new Alien(game, "Alien");
            alien.AddAssetClip("catcheat", "Alien-catcheat");
            alien.AddAssetClip("ob", "Alien-ob");
            alien.AddAssetClip("stance", "Alien-stance");
            alien.AddAssetClip("trantrum", "Alien-trantrum");
            alien.AddAssetClip("walkloop", "Alien-walkloop");
            alien.AddAssetClip("walkstart", "Alien-walkstart");

            SetPlayerTransform();
        }
Exemple #10
0
        public Player(PrisonGame game)
        {
            this.game = game;
            victoria = new Victoria(game, "Victoria");
            bazooka = new Bazooka(game);
            victoria.AddAssetClip("walk", "Victoria-walk");
            victoria.AddAssetClip("walkstart", "Victoria-walkstartbazooka");
            victoria.AddAssetClip("walkloop", "Victoria-walkloopbazooka");
            victoria.AddAssetClip("raisebazooka", "Victoria-raisebazooka");
            victoria.AddAssetClip("lowerbazooka", "Victoria-lowerbazooka");
            victoria.AddAssetClip("crouchbazooka", "Victoria-crouchbazooka");

            SetPlayerTransform();

            //game.Camera.Eye = location + new Vector3(-300 * (float)Math.Sin(orientation), 125, -300 * (float)Math.Cos(orientation));
        }
Exemple #11
0
        public Interface(PrisonGame game, Player player, int playerControllerIndex)
        {
            this.game = game;
            this.player = player;

            if (playerControllerIndex == 1)
            {
                index = PlayerIndex.One;
            }
            else if (playerControllerIndex == 2)
            {
                index = PlayerIndex.Two;
            }
            else if (playerControllerIndex == 3)
            {
                index = PlayerIndex.Three;
            }
            else if (playerControllerIndex == 4)
            {
                index = PlayerIndex.Four;
            }
        }
Exemple #12
0
 public Alien(PrisonGame game, string asset)
     : base(game, asset)
 {
 }
Exemple #13
0
Fichier : Pie.cs Projet : ksuh90/P3
 public Pie(PrisonGame game)
 {
     this.game = game;
 }
 public Spit(PrisonGame game)
 {
     this.game = game;
 }
Exemple #15
0
 public Ground(PrisonGame inGame)
 {
     game = inGame;
 }
 public Player(PrisonGame game)
 {
     this.game = game;
     victoria = new AnimatedModel(game, "Victoria");
     bazooka = new AnimatedModel(game, "PieBazooka");
     victoria.AddAssetClip("dance", "Victoria-dance");
     victoria.AddAssetClip("stance", "Victoria-stance");
     victoria.AddAssetClip("walk", "Victoria-walk");
     victoria.AddAssetClip("walkstart", "Victoria-walkstart");
     victoria.AddAssetClip("walkloop", "Victoria-walkloop");
     victoria.AddAssetClip("rightturn", "Victoria-rightturn");
     victoria.AddAssetClip("leftturn", "Victoria-leftturn");
     victoria.AddAssetClip("bazookacrouch", "Victoria-crouchbazooka");
     victoria.AddAssetClip("walkloopbazooka", "Victoria-walkloopbazooka");
     victoria.AddAssetClip("lowerbazooka", "Victoria-lowerbazooka");
     victoria.AddAssetClip("raisebazooka", "Victoria-raisebazooka");
     //victoria.AddAssetClip("crouchbazooka", "Victoria-crouchbazooka");
     victoria.AddAssetClip("walkstartbazooka", "Victoria-walkstartbazooka");
     SetPlayerTransform();
     pie = new Pie(game);
     currentSectionNumber = 1;
     victoria.CalculateBoundingBox();
 }
Exemple #17
0
 /// <summary>
 /// Constructor. Creates an object for a section.
 /// </summary>
 /// <param name="game"></param>
 /// <param name="section"></param>
 public PrisonModel(PrisonGame game, int section)
 {
     this.game = game;
     this.section = section;
     this.asset = "AntonPhibes" + section.ToString();
 }
Exemple #18
0
 public Player(PrisonGame game)
 {
     this.game = game;
     SetPlayerTransform();
 }
Exemple #19
0
 public Bazooka(PrisonGame game)
 {
     this.game = game;
     Reload();
 }
Exemple #20
0
 public Skybox(PrisonGame inGame)
 {
     game = inGame;
 }
 public Dalek(PrisonGame game)
 {
     this.game = game;
     model = new AnimatedModel(game, "Dalek");
     SetDalekTransform();
 }
Exemple #22
0
 public Spit(PrisonGame game)
     : base(game)
 {
     this.game = game;
     this.DrawOrder = 1000;
 }
Exemple #23
0
 public BoundingCylinder(PrisonGame game, Vector3 location)
 {
     this.location = location;
 }
 public Pie(PrisonGame game)
 {
     this.game = game;
     model = new AnimatedModel(game, "pies");
 }
Exemple #25
0
 public Victoria(PrisonGame game, string asset)
     : base(game, asset)
 {
 }
Exemple #26
0
 public Player(PrisonGame game)
 {
     this.game = game;
     SetPlayerTransform();
 }
Exemple #27
0
        public Player(PrisonGame game)
        {
            this.game = game;
            SetPlayerTransform();
            #region models

            dalekInfo = new Dalek(new Vector3(700, 0, -500));
            stuckPies = new List<PieClass>();
            victoria = new AnimatedModel(game, "Victoria",this);
            bazooka = new AnimatedModel(game, "PieBazooka",this);
            DalekModel = new AnimatedModel(game, "Dalek",this);
            Pies = new AnimatedModel(game, "pies",this);
            Alien = new AnimatedModel(game, "Alien",this);
            spit = new AnimatedModel(game, "Spit",this);
            #endregion
            #region victoriaClips
            victoria.AddAssetClip("dance", "Victoria-dance");
            victoria.AddAssetClip("stance", "Victoria-stance");
            victoria.AddAssetClip("walk", "Victoria-walk");
            victoria.AddAssetClip("walkstart", "Victoria-walkstart");
            victoria.AddAssetClip("walkloop", "Victoria-walkloop");
            victoria.AddAssetClip("leftturn", "Victoria-leftturn");
            victoria.AddAssetClip("rightturn", "Victoria-rightturn");
            //bazooka
            victoria.AddAssetClip("crouch", "Victoria-crouchbazooka");
            victoria.AddAssetClip("lowerB", "Victoria-lowerbazooka");
            victoria.AddAssetClip("raiseB", "Victoria-raisebazooka");
            victoria.AddAssetClip("walkstartB", "Victoria-walkstartbazooka");
            victoria.AddAssetClip("walkloopB", "Victoria-walkloopbazooka");
            #endregion
            #region Alien

            Alien.AddAssetClip("eat", "Alien-catcheat");
            Alien.AddAssetClip("ob", "Alien-ob");
            Alien.AddAssetClip("walkStart", "Alien-walkstart");
            Alien.AddAssetClip("walkloop", "Alien-walkloop");
            Alien.AddAssetClip("stance", "Alien-stance");
            Alien.AddAssetClip("tantrum", "Alien-trantrum");
            #endregion
        }
Exemple #28
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Locust" /> class.
 /// This function creates Bat, given the game supplied
 /// </summary>
 /// <param name="game"></param>
 public Dalek(PrisonGame p_game, Player p_player)
 {
     game = p_game;
     player = p_player;
 }