public ConstructionMenu(Vector2 renderPosition, ContentManager Content, inventory playerInvIn, MapLoader currMapIn, Player currPlayerIn) { location = renderPosition; List <Tuple <resource.resourceTypes, int> > spikeResources = new List <Tuple <resource.resourceTypes, int> >(); spikeResources.Add(new Tuple <resource.resourceTypes, int>(resource.resourceTypes.Wood, 1)); items.Add(new constructionItem(resource.resourceTypes.Spike, spikeResources, true, false, true)); List <Tuple <resource.resourceTypes, int> > spikePitResources = new List <Tuple <resource.resourceTypes, int> >(); spikePitResources.Add(new Tuple <resource.resourceTypes, int>(resource.resourceTypes.Spike, 5)); items.Add(new constructionItem(resource.resourceTypes.SpikePit, spikePitResources, false, true)); List <Tuple <resource.resourceTypes, int> > treeResources = new List <Tuple <resource.resourceTypes, int> >(); treeResources.Add(new Tuple <resource.resourceTypes, int>(resource.resourceTypes.Acorn, 1)); items.Add(new constructionItem(resource.resourceTypes.Tree, treeResources, false, true)); background = Content.Load <Texture2D>("InventoryBackground"); itemSlot = Content.Load <Texture2D>("inventorySquare"); selectedItemSlot = Content.Load <Texture2D>("selectedInventorySquare"); inventoryDialog = Content.Load <Texture2D>("inventoryDialogBox"); Spike = Content.Load <Texture2D>("woodenStake"); SpikePit = Content.Load <Texture2D>("spikepitTile"); Tree = Content.Load <Texture2D>("treeIcon"); font = Content.Load <SpriteFont>("SpriteFont1"); playerInv = playerInvIn; currMap = currMapIn; currPlayer = currPlayerIn; }
public ConstructionMenu(Vector2 renderPosition, ContentManager Content, inventory playerInvIn, MapLoader currMapIn, Player currPlayerIn) { location = renderPosition; List<Tuple<resource.resourceTypes, int>> spikeResources = new List<Tuple<resource.resourceTypes, int>>(); spikeResources.Add(new Tuple<resource.resourceTypes, int>(resource.resourceTypes.Wood, 1)); items.Add(new constructionItem(resource.resourceTypes.Spike, spikeResources, true, false, true)); List<Tuple<resource.resourceTypes, int>> spikePitResources = new List<Tuple<resource.resourceTypes, int>>(); spikePitResources.Add(new Tuple<resource.resourceTypes, int>(resource.resourceTypes.Spike, 5)); items.Add(new constructionItem(resource.resourceTypes.SpikePit, spikePitResources, false, true)); List<Tuple<resource.resourceTypes, int>> treeResources = new List<Tuple<resource.resourceTypes, int>>(); treeResources.Add(new Tuple<resource.resourceTypes, int>(resource.resourceTypes.Acorn, 1)); items.Add(new constructionItem(resource.resourceTypes.Tree, treeResources, false, true)); background = Content.Load<Texture2D>("InventoryBackground"); itemSlot = Content.Load<Texture2D>("inventorySquare"); selectedItemSlot = Content.Load<Texture2D>("selectedInventorySquare"); inventoryDialog = Content.Load<Texture2D>("inventoryDialogBox"); Spike = Content.Load<Texture2D>("woodenStake"); SpikePit = Content.Load<Texture2D>("spikepitTile"); Tree = Content.Load<Texture2D>("treeIcon"); font = Content.Load<SpriteFont>("SpriteFont1"); playerInv = playerInvIn; currMap = currMapIn; currPlayer = currPlayerIn; }
public Player(ContentManager Content) { playerTexture = Content.Load <Texture2D>("player"); inv = new inventory(Content); //inv.addToInventory(resource.resourceTypes.Wood, 1); inv.addToInventory(resource.resourceTypes.Hatchet, 1); isDead = false; }
public Player(ContentManager Content) { playerTexture = Content.Load<Texture2D>("player"); inv = new inventory(Content); //inv.addToInventory(resource.resourceTypes.Wood, 1); inv.addToInventory(resource.resourceTypes.Hatchet, 1); isDead = false; }