Пример #1
0
 /// <summary>
 /// The main entry point for the application.
 /// </summary>
 static void Main(string[] args)
 {
     using (PrisonGame game = new PrisonGame())
     {
         game.Run();
     }
 }
Пример #2
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();
 }
Пример #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();
 }
Пример #4
0
 /// <summary>
 /// The main entry point for the application.
 /// </summary>
 static void Main(string[] args)
 {
     using (PrisonGame game = new PrisonGame())
     {
         game.Run();
     }
 }
Пример #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;
            }
        }
Пример #7
0
        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();
        }
Пример #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();
 }
Пример #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();
        }
Пример #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));
        }
Пример #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;
            }
        }
Пример #12
0
Файл: Alien.cs Проект: ksuh90/P3
 public Alien(PrisonGame game, string asset)
     : base(game, asset)
 {
 }
Пример #13
0
Файл: Pie.cs Проект: ksuh90/P3
 public Pie(PrisonGame game)
 {
     this.game = game;
 }
Пример #14
0
 public Spit(PrisonGame game)
 {
     this.game = game;
 }
Пример #15
0
 public Ground(PrisonGame inGame)
 {
     game = inGame;
 }
Пример #16
0
 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();
 }
Пример #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();
 }
Пример #18
0
 public Player(PrisonGame game)
 {
     this.game = game;
     SetPlayerTransform();
 }
Пример #19
0
 public Bazooka(PrisonGame game)
 {
     this.game = game;
     Reload();
 }
Пример #20
0
 public Skybox(PrisonGame inGame)
 {
     game = inGame;
 }
Пример #21
0
 public Dalek(PrisonGame game)
 {
     this.game = game;
     model = new AnimatedModel(game, "Dalek");
     SetDalekTransform();
 }
Пример #22
0
Файл: Spit.cs Проект: ksuh90/P3
 public Spit(PrisonGame game)
     : base(game)
 {
     this.game = game;
     this.DrawOrder = 1000;
 }
Пример #23
0
 public BoundingCylinder(PrisonGame game, Vector3 location)
 {
     this.location = location;
 }
Пример #24
0
 public Pie(PrisonGame game)
 {
     this.game = game;
     model = new AnimatedModel(game, "pies");
 }
Пример #25
0
 public Victoria(PrisonGame game, string asset)
     : base(game, asset)
 {
 }
Пример #26
0
 public Player(PrisonGame game)
 {
     this.game = game;
     SetPlayerTransform();
 }
Пример #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
        }
Пример #28
0
Файл: Dalek.cs Проект: ksuh90/P3
 /// <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;
 }