C# Class MM2Randomizer.Randomizers.Enemies.REnemies

Stage Enemy Type Randomizer
Inheritance: IRandomizer
Datei anzeigen Open project: duckfist/MM2Random

Public Properties

Property Type Description
CHANCE_MOLE double
CHANCE_PIPI double
CHANCE_SHRINKSPAWNER double
CHANCE_SPRINGER double
CHANCE_TELLY double
EnemyInstances List
MAX_MOLES int
MAX_PIPIS int
Stage0EnemyIDAddress int
Stage0EnemyScreenAddress int
Stage0EnemyYAddress int
StageLength int
numMoles int
numPipis int

Public Methods

Method Description
ChangeRoomSpriteBankSlots ( Patch p ) : void

This method makes some preliminary modifications to the Mega Man 2 ROM to increase the enemy variety by changing the sprite banks used by certain rooms.

CheckEnemySpriteFitInBank ( List currentSprites, EnemyType spriteToAdd ) : bool
InitializeEnemies ( ) : void
REnemies ( ) : System
Randomize ( Patch p, Random r ) : void
TryReplaceActivator ( List newEnemies, byte id ) : byte

Private Methods

Method Description
Execute ( Patch Patch, Random r ) : void
GenerateEnemyCombinations ( SpriteBankRoomGroup sbrg, Random r ) : List
InitializeRooms ( ) : void
ReadEnemyInstancesFromFile ( ) : void

Read enemylist.csv to construct EnemyInstances.

Method Details

ChangeRoomSpriteBankSlots() public method

This method makes some preliminary modifications to the Mega Man 2 ROM to increase the enemy variety by changing the sprite banks used by certain rooms.
public ChangeRoomSpriteBankSlots ( Patch p ) : void
p MM2Randomizer.Patcher.Patch
return void

CheckEnemySpriteFitInBank() public method

public CheckEnemySpriteFitInBank ( List currentSprites, EnemyType spriteToAdd ) : bool
currentSprites List
spriteToAdd EnemyType
return bool

InitializeEnemies() public method

public InitializeEnemies ( ) : void
return void

REnemies() public method

public REnemies ( ) : System
return System

Randomize() public method

public Randomize ( Patch p, Random r ) : void
p MM2Randomizer.Patcher.Patch
r System.Random
return void

TryReplaceActivator() public method

public TryReplaceActivator ( List newEnemies, byte id ) : byte
newEnemies List
id byte
return byte

Property Details

CHANCE_MOLE public_oe static_oe property

public static double CHANCE_MOLE
return double

CHANCE_PIPI public_oe static_oe property

public static double CHANCE_PIPI
return double

CHANCE_SHRINKSPAWNER public_oe static_oe property

public static double CHANCE_SHRINKSPAWNER
return double

CHANCE_SPRINGER public_oe static_oe property

public static double CHANCE_SPRINGER
return double

CHANCE_TELLY public_oe static_oe property

public static double CHANCE_TELLY
return double

EnemyInstances public_oe property

public List EnemyInstances
return List

MAX_MOLES public_oe static_oe property

public static int MAX_MOLES
return int

MAX_PIPIS public_oe static_oe property

public static int MAX_PIPIS
return int

Stage0EnemyIDAddress public_oe static_oe property

public static int Stage0EnemyIDAddress
return int

Stage0EnemyScreenAddress public_oe static_oe property

public static int Stage0EnemyScreenAddress
return int

Stage0EnemyYAddress public_oe static_oe property

public static int Stage0EnemyYAddress
return int

StageLength public_oe static_oe property

public static int StageLength
return int

numMoles public_oe property

public int numMoles
return int

numPipis public_oe property

public int numPipis
return int