public Enemy(Spawn spawn, ProjectileData projectileData, int maxHealth, int attackDamage, double worldX, double worldY, Texture2D vulnerable, Texture2D hitBox, Texture2D overlay, Vector2 destCoords, int numFrames, int frameNum, int sizeMultiplier, bool mirrorX, Nullable <int> cycleStart) : base(worldX, worldY, overlay, destCoords, numFrames, frameNum, mirrorX, hitBox) { this.spawn = spawn; this.projectileData = projectileData; this.maxHealth = maxHealth; this.currentHealth = maxHealth; this.attackDamage = attackDamage; this.vulnerable = vulnerable; this.overlay = overlay; this.attack = new int[] { 0 }; this.die = new int[] { 0 }; this.action = new Status("idle", 0); this.attackCooldown = 120; }
public BioSnail(Spawn spawn, Vector2 mapCoordinates, double worldX, double worldY, EnemyTextureSet texture, ProjectileData projectileData) : base(spawn, projectileData, 100, 20, worldX, worldY, texture.vulnerable, texture.hitBox, texture.overlay, new Vector2((float)worldX - mapCoordinates.X, (float)worldY - mapCoordinates.Y), 14, 0, 1, false, null) { this.FRAME_OFFSET = 6; this.die = new int[] { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13 }; this.attack = new int[] { 2, 2, 0, 1, 1, 999, 2, 0 }; }