public Damage(Entities entities, bool hitDamage = false) { _takingDamage = false; _entities = entities; _speed = 1; _hitDamage = hitDamage; }
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"); }
public Boomerang(Entities entities) { _entities = entities; ItemId = 1; _speed = 2.5f; MenuPosition = new Vector2(0,0); _alreadyHitObject = false; }
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; }
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); }
public Sword(Entities entities) { ItemId = 2; _entities = entities; MenuPosition = new Vector2(0, 0); }