Exemplo n.º 1
0
 public virtual void LoadContent(ContentPool Content, ObjectPool Objects)
 {
     this.Content = Content;
     Content.AddTexture2D("Bullets\\bullet", this.name + "_bullet");
     Content.AddTexture2D("Weapons\\debug", this.name + "_gun");
     this.ObjWeapon = (ObjectWeapon)Objects.AddObject(ObjectPool.ObjectTypes.Weapon, "Player" + this.name, this.name + "_gun");
 }
Exemplo n.º 2
0
 public WeaponEngine(ContentPool Content, ObjectPool Objects)
 {
     this.Content = Content;
     this.Objects = Objects;
     this.availableWeapons = new List<WeaponBase>();
     this.currentWeapon = null;
     GameStats.CreateStat("FiredBullets", 0);
 }
Exemplo n.º 3
0
 public SplashScreen(GraphicsDevice graphicsDevice, ObjectPool Objects, ContentPool Content)
 {
     this.Objects = Objects;
     this.Content = Content;
     this.ScreenName = "Menu";
     this.GraphicsDevice = graphicsDevice;
     this.Batch = new SpriteBatch(GraphicsDevice);
 }
Exemplo n.º 4
0
 public MapTest(SpriteBatch batch, ContentPool Content, ObjectPool Objects)
 {
     this.ObjectPool = Objects;
     this.Content = Content;
     this.Batch = batch;
     this.Width = 1000;
     this.Height = 1000;
     Initializer();
 }
Exemplo n.º 5
0
 public GameCore(int width, int height, ContentPool content, ObjectPool objects, GraphicsDeviceManager graphics, Game game)
 {
     Game = game;
     Graphics = graphics;
     Width = width;
     Height = height;
     Content = content;
     Objects = objects;
 }
 public void LoadContent(ObjectPool Objects, ContentPool Content)
 {
     foreach (string key in achivementTable.Keys)
     {
         AchivementBase b = (AchivementBase)achivementTable[key];
         b.LoadContent(Content);
     }
     Content.AddTexture2D("Misc\\achivementShelf", "achivementShelf");
     shelf = (ObjectAchivementShelf)Objects.AddObject(ObjectPool.ObjectTypes.AchivementShelf, "achivementShelf", "achivementShelf");
     shelf.OnMessageFinished += new ObjectAchivementShelf.OnMessageFinishedDelegate(shelf_OnMessageFinished);
 }
Exemplo n.º 7
0
 public Main()
 {
     gamerServices = new GamerServicesComponent(this);
     graphics = new GraphicsDeviceManager(this);
     //graphics.IsFullScreen = true;
     graphics.PreferredBackBufferWidth = 800;
     graphics.PreferredBackBufferHeight = 600;
     Content.RootDirectory = "Content";
     contentPool = new ContentPool(Content);
     objectPool = new ObjectPool(contentPool);
     gameCore = new GameCore(graphics.PreferredBackBufferWidth, graphics.PreferredBackBufferHeight, contentPool, objectPool, graphics, this);
 }
Exemplo n.º 8
0
 public GameScreen(GraphicsDevice graphicsDevice, ObjectPool Objects, ContentPool Content, GameCore gameCore)
 {
     this.Objects = Objects;
     this.Content = Content;
     this.ScreenName = "Game";
     this.GraphicsDevice = graphicsDevice;
     this.Batch = new SpriteBatch(GraphicsDevice);
     testmap = new MapTest(Batch, Content, Objects);
     weaponEngine = new WeaponEngine.WeaponEngine(Content, Objects);
     this.gameCore = gameCore;
     GameStats.CreateStat("KilledEnemies", 0);
 }
Exemplo n.º 9
0
        public virtual void Update(GameTime gameTime, Map.MapBase map, ObjectPool objectPool)
        {

        }
Exemplo n.º 10
0
 public override void LoadContent(ContentPool Content, ObjectPool Objects)
 {
     base.LoadContent(Content, Objects);
 }