Esempio n. 1
0
 public Damage(Entities entities, bool hitDamage = false)
 {
     _takingDamage = false;
     _entities = entities;
     _speed = 1;
     _hitDamage = hitDamage;
 }
Esempio n. 2
0
 public override void LoadContent(Equipment owner, ContentManager content, ManagerMap managerMap, ManagerCamera managerCamera, Entities entities)
 {
     base.LoadContent(owner, content, managerMap, managerCamera,entities);
     AddComponent(new Sprite(ManagerContent.LoadTexture("sword"), 16, 16, new Vector2(0, 0)));
     AddComponent(new Animation(16,16,2,100));
     AddComponent(new Camera(managerCamera));
     GuiTexture = ManagerContent.LoadTexture("sword_gui");
 }
Esempio n. 3
0
 public Boomerang(Entities entities)
 {
     _entities = entities;
     ItemId = 1;
     _speed = 2.5f;
     MenuPosition = new Vector2(0,0);
     _alreadyHitObject = false;
 }
Esempio n. 4
0
 public Equipment(ContentManager content, ManagerMap managerMap, ManagerCamera managerCamera, Entities entities)
 {
     _items = new List<Item>();
     _content = content;
     _equipedItem = new Dictionary<ItemSlot, Item>();
     _managerMap = managerMap;
     _managerCamera = managerCamera;
     _entities = entities;
 }
Esempio n. 5
0
 public ScreenWorld(ManagerScreen managerScreen)
     : base(managerScreen)
 {
     _managerCamera = new ManagerCamera();
     _managerMap = new ManagerMap("newmap", _managerCamera);
     _entities = new Entities();
     _managerEvents = new ManagerEvents();
     _managerPlayer = new ManagerPlayer();
     //uglyyyyyyy
     FactoryDeathAnimation.Initailize(_managerCamera);
 }
Esempio n. 6
0
 public Sword(Entities entities)
 {
     ItemId = 2;
     _entities = entities;
     MenuPosition = new Vector2(0, 0);
 }