public MonsterTargetBullet(Vector2 position, Monster target, int damage) : base(damage:damage, baseSpeed:3000) { X = position.X; Y = position.Y; BulletImage = new Spritemap<string>(Resources.Sprites.Bullets.BULLET_RED_1_1, 12, 12); Graphic = BulletImage; Graphic.CenterOrigin(); AddComponent(new ToMonsterMovement(this, target)); SetHitbox(1, 1, Global.HitBoxTag.Bullet); }
public ToMonsterMovement(EntityWithDirection entity, Monster target) { Target = target; EntityWithDirection = entity; }
public DamageMonsterEvent(Monster monster, int damage) : base(monster) { Damage = damage; }
public MonsterEvent(Monster monster) { Monster = monster; }
public SlowMonsterEvent(Monster monster, float ratio, float duration) : base(monster) { Duration = duration; Ratio = ratio; }