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"); }
public WeaponEngine(ContentPool Content, ObjectPool Objects) { this.Content = Content; this.Objects = Objects; this.availableWeapons = new List<WeaponBase>(); this.currentWeapon = null; GameStats.CreateStat("FiredBullets", 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); }
public MapTest(SpriteBatch batch, ContentPool Content, ObjectPool Objects) { this.ObjectPool = Objects; this.Content = Content; this.Batch = batch; this.Width = 1000; this.Height = 1000; Initializer(); }
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); }
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); }
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); }
public virtual void Update(GameTime gameTime, Map.MapBase map, ObjectPool objectPool) { }
public override void LoadContent(ContentPool Content, ObjectPool Objects) { base.LoadContent(Content, Objects); }