public void Initialize(ContentManager content, Package package, Texture2D uiTexture) { UiTexture = uiTexture; // Ai Ai[0] = new NpcAiDummy(); Ai[1] = new NpcAiChase(); // Races Races[0] = new NpcRace("Lynch", content.Load<Texture2D>("Npcs/Sprites/lynch"), package.LocalString("c:/blueprint/lynch.xml", false)); // Npcs Types[0] = new NpcType("The Lynch", Races[0], Ai[1]); Types[0].Dialog.Add("Hello {playername}", NpcInteraction.NpcInteractionState.Intro); Types[0].Dialog.Add("Here is some interesting information {playername}", NpcInteraction.NpcInteractionState.Gossip); // Active Npcs ActiveNpc npc = new ActiveNpc(Types[0], new Vector2(200, -50)); ActiveNpcs.Add(npc); }
public void Initialize(Texture2D playerTexture, Texture2D barsTexture, Package package, Vector2 position) { BarsTexture = barsTexture; PlayerTexture = playerTexture; Health = 100; Mana = 100; Speed = 4f; Name = "Firebolt"; Inventory = new Inventory(); // Animation Animation = new Animations(package.LocalString("C:\\blueprint\\player.xml", false)); Movement = new Movement(position, 32, 44); }