-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathShopManger.cs
57 lines (39 loc) · 1.4 KB
/
ShopManger.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Rectangle = Microsoft.Xna.Framework.Rectangle;
namespace monowizard
{
internal class ShopManger
{
public int shopgridind;
public Player player;
public Random rand = new Random();
public bool isShoponLevel = false;
public Rectangle shopRect;
public ShopManger(Player player)
{
this.player = player;
}
public void setupShop()
{
player.itemManager.addShopItemRand(((shopgridind % 4) * 960)+200,((shopgridind / 4) * 960)+500,shopgridind);
player.itemManager.addShopItemRand(((shopgridind % 4) * 960) + 450, ((shopgridind / 4) * 960) + 500,shopgridind);
player.itemManager.addShopItemRand(((shopgridind % 4) * 960) + 700, ((shopgridind / 4) * 960) + 500, shopgridind);
// player.mm.addBrainShopKeepMonster(((shopgridind % 4) * 960) + 500, ((shopgridind / 4) * 960) + 50);
}
public void setShopRect()
{
shopRect = new Rectangle((shopgridind % 4) * 960, (shopgridind / 4) * 960,960,960);
}
public void update()
{
}
}
}