public Character(ETalisman eTalisman) : base(eTalisman) { this.eTalisman = eTalisman; stats = new Stats(eTalisman); }
public Pong(ETalisman eTalisman) : base(eTalisman) { this.eTalisman = eTalisman; bounds = new Rectangle(10, 10, eTalisman.graphics.PreferredBackBufferWidth, eTalisman.graphics.PreferredBackBufferHeight); Disable(); LoadContent(); }
public Stats(ETalisman eTalisman) : base(eTalisman) { health = 100; mana = 100; attributes = new Attribute[(int)Attributes._END]; attributes[(int)Stats.Attributes.STRENGTH] = new Attribute(Attributes.STRENGTH, "Strength", 10); attributes[(int)Stats.Attributes.DEXTERITY] = new Attribute(Attributes.DEXTERITY, "Dexterity", 10); attributes[(int)Stats.Attributes.VITALITY] = new Attribute(Attributes.VITALITY, "Vitality", 10); attributes[(int)Stats.Attributes.ENERGY] = new Attribute(Attributes.ENERGY, "Energy", 10); availableAttributePoints = 10; }
public Paddle(ETalisman eTalisman, int positionX, int positionY, int width, int height, int top, int bottom) { this.eTalisman = eTalisman; spriteBatch = eTalisman.spriteBatch; this.positionX = positionX; this.positionY = positionY; this.width = width; this.height = height; this.top = top; this.bottom = bottom; graphic = eTalisman.Content.Load<Texture2D>(@"gfx/paddle"); }
public Ball(ETalisman eTalisman, Vector2 position, Vector2 velocity) { this.eTalisman = eTalisman; spriteBatch = eTalisman.spriteBatch; this.positionX = position.X; this.positionY = position.Y; this.velocityX = velocity.X; this.velocityY = velocity.Y; top = 0; left = 0; right = eTalisman.graphics.PreferredBackBufferWidth; bottom = eTalisman.graphics.PreferredBackBufferHeight; LoadContent(); }
public MainMenu(ETalisman eTalisman) : base(eTalisman, eTalisman.input, eTalisman.spriteBatch, new Rectangle(0, 0, eTalisman.graphics.PreferredBackBufferWidth, eTalisman.graphics.PreferredBackBufferHeight)) { this.eTalisman = eTalisman; root = new SubMenu(this, null, null); currentMenu = root; root.AddChild(new OptionCloseMenu(this, "Resume")); root.AddChild(new NewAdventure(eTalisman, this)); options = new SubMenu(this, root, "Options"); options.AddChild(new ExitGame(this, "exit again..", eTalisman)); root.AddChild(options); root.AddChild(new ExitGame(this, eTalisman)); }
public MainMenu(ETalisman eTalisman) : base(eTalisman) { this.eTalisman = eTalisman; spriteBatch = eTalisman.spriteBatch; //spriteBatch = (SpriteBatch)eTalisman.Services.GetService(typeof(SpriteBatch)); choiceBackground = eTalisman.Content.Load<Texture2D>(@"gfx\menu_item_background-300x100"); optionBackground = eTalisman.Content.Load<Texture2D>(@"gfx\menu_item_background2_selected-300x100"); spriteFont = eTalisman.Content.Load<SpriteFont>(@"font\arial"); width = eTalisman.graphics.PreferredBackBufferWidth; height = eTalisman.graphics.PreferredBackBufferHeight; SubMenu root = new SubMenu(this, null, null); currentMenu = root; root.AddChild(new CloseMenu(this, "Resume")); SubMenu options = new SubMenu(this, root, "Options"); options.AddChild(new ExitETalisman(this, "exit again..", eTalisman)); root.AddChild(options); root.AddChild(new ExitETalisman(this, "Exit", eTalisman)); }
public ExitETalisman(MainMenu menu, String label, ETalisman eTalisman) : base(menu, label) { this.eTalisman = eTalisman; }
public NewAdventure(ETalisman eTalisman, MainMenu menu) : base(menu, "New Adventure") { this.eTalisman = eTalisman; }
public Creator(ETalisman eTalisman) : base(eTalisman) { this.eTalisman = eTalisman; spriteBatch = eTalisman.spriteBatch; step = Step.PICK_CLASS; character = new Character(eTalisman); newStats = new Stats(eTalisman); // info text font = eTalisman.Content.Load<SpriteFont>("font/Arial"); background = eTalisman.Content.Load<Texture2D>("gfx/background/106702_Starlightss1"); // class Class amazon = new Class(new Stats(eTalisman), "Yahaua Indian"); amazon.stats.health = 150; amazon.stats.mana = 100; amazon.stats.attributes[(int)Stats.Attributes.STRENGTH].value = 10; amazon.stats.attributes[(int)Stats.Attributes.DEXTERITY].value = 20; amazon.stats.attributes[(int)Stats.Attributes.VITALITY].value = 15; amazon.stats.attributes[(int)Stats.Attributes.ENERGY].value = 10; amazon.stats.availableAttributePoints = 11; amazon.texture = eTalisman.Content.Load<Texture2D>("gfx/amazon/amazon3"); amazon.bounds = new Rectangle(-30, 170, 800, 439); Class warrior = new Class(new Stats(eTalisman), "Dingo Warrior"); warrior.stats.health = 200; warrior.stats.mana = 50; warrior.stats.attributes[(int)Stats.Attributes.STRENGTH].value = 20; warrior.stats.attributes[(int)Stats.Attributes.DEXTERITY].value = 12; warrior.stats.attributes[(int)Stats.Attributes.VITALITY].value = 17; warrior.stats.attributes[(int)Stats.Attributes.ENERGY].value = 5; warrior.stats.availableAttributePoints = 10; warrior.texture = eTalisman.Content.Load<Texture2D>("gfx/warrior/warrior3"); warrior.bounds = new Rectangle(290, 0, 270, 355); Class sorceress = new Class(new Stats(eTalisman), "Mary Kate"); sorceress.stats.health = 100; sorceress.stats.mana = 200; sorceress.stats.attributes[(int)Stats.Attributes.STRENGTH].value = 10; sorceress.stats.attributes[(int)Stats.Attributes.DEXTERITY].value = 10; sorceress.stats.attributes[(int)Stats.Attributes.VITALITY].value = 12; sorceress.stats.attributes[(int)Stats.Attributes.ENERGY].value = 20; sorceress.stats.availableAttributePoints = 12; sorceress.texture = eTalisman.Content.Load<Texture2D>("gfx/sorceress/sorceress3"); sorceress.bounds = new Rectangle(550, 0, 242, 600); Class eTMichael = new Class(new Stats(eTalisman), "E.T. and Michael Jackson"); eTMichael.stats.health = 150; eTMichael.stats.mana = 150; eTMichael.stats.attributes[(int)Stats.Attributes.STRENGTH].value = 12; eTMichael.stats.attributes[(int)Stats.Attributes.DEXTERITY].value = 13; eTMichael.stats.attributes[(int)Stats.Attributes.VITALITY].value = 13; eTMichael.stats.attributes[(int)Stats.Attributes.ENERGY].value = 19; eTMichael.stats.availableAttributePoints = 13; eTMichael.texture = eTalisman.Content.Load<Texture2D>("gfx/etandmichaeljackson/etandmichaeljackson3"); eTMichael.bounds = new Rectangle(290, 260, 362, 400); Class[] classes = new Class[] { warrior, sorceress, amazon, eTMichael }; // GUIs used in different steps classGUI = new ClassGUI(eTalisman, this, classes); statsGUI = new StatsGUI(eTalisman, this); }
public StatsGUI(ETalisman eTalisman, Creator creator) { this.eTalisman = eTalisman; this.creator = creator; input = eTalisman.input; selected = Stats.Attributes._BEGIN + 1; }
public ClassGUI(ETalisman eTalisman, Creator creator, Class[] classes) { this.eTalisman = eTalisman; this.creator = creator; this.classes = classes; }