public Level(int startAddress, int enemyDataAddress, int weaponGetIndex, int bossAILoaderIndex, EnemyNameId boss, string name) { StartAddress = startAddress; EnemyDataAddress = enemyDataAddress; Name = name; WeaponGetIndex = weaponGetIndex; ScreenNumberStart = enemyDataAddress - SCREEN_NUMBER_OFFSET_BASE; YPosStart = enemyDataAddress - Y_POS_OFFSET_BASE; BossAILoaderIndex = bossAILoaderIndex; BossEnemy = boss; OffsetToSpecialEnemyList = new Dictionary <int, List <EnemyNameId> >(); }
public Enemy(EnemyNameId enemyNameId, int yOffset, bool hasGravity, bool isFlyingOnly, bool isInverted, bool isJetSkiOnly, bool isUnderwaterOnly, bool isHighRenderCost, int spriteBank, bool canReplaceFliers = false, bool isBigBoy = false, bool isBannedFromRandomization = false, int tauntFrames = 0, int animationReference = 0) { EnemyNameId = enemyNameId; Value = (byte)enemyNameId; Name = enemyNameId.ToString(); YOffset = yOffset; HasGravity = hasGravity; IsFlying = isFlyingOnly; IsInverted = isInverted; IsJetSkiOnly = isJetSkiOnly; IsUnderwaterOnly = isUnderwaterOnly; IsHighRenderCost = isHighRenderCost; IsBannedFromRandomization = isBannedFromRandomization; IsBigBoy = isBigBoy; SpriteBank = spriteBank; CanReplaceFliers = CanReplaceFliers; TauntFrames = tauntFrames; AnimationReference = animationReference; }