BrawlerAGD BrawlerAGD 0.0.0 ALPHA
An Automated Game Designer (AGD) Used for Creating Brawler Fighting Games. An Automated Game Designer for Brawler Video Games
SerializedPlayer Class Reference

Public Member Functions

 SerializedPlayer (String _name, Random rand)
 
 SerializedPlayer (String _name, float[] genome, int _spriteIndex)
 
void SetRandomSprite (Random rand)
 
float[] genome ()
 
void initFromGenome (float[] genome)
 
void mutate (Random rand)
 

Static Public Member Functions

static float chooseValue (int valueIndex, Random rand)
 
static float[] generateGenome (Random rand)
 
static SerializedPlayer singlePointCrossover (SerializedPlayer p1, SerializedPlayer p2, Random rand)
 
static SerializedPlayer randomCrossover (SerializedPlayer p1, SerializedPlayer p2, Random rand)
 

Public Attributes

String playerName
 
KeyCode jumpKey
 
KeyCode leftKey
 
KeyCode rightKey
 
KeyCode attackKey
 
int stocks
 
float groundAccelerationFactor
 
float groundAcceleration
 
float airAccelerationFactor
 
float airAcceleration
 
float maxGroundSpeed
 
float maxAirSpeed
 
float totalJumpForce
 
float jumpRatio
 
float groundJumpForce
 
float airJumpForce
 
float mass
 
float drag
 
float widthScalar
 
float heightScalar
 
float gravityScalar
 
float hitstunDamageScalar
 
int spriteIndex
 

Static Public Attributes

static float[,] ranges
 

Constructor & Destructor Documentation

◆ SerializedPlayer() [1/2]

SerializedPlayer.SerializedPlayer ( String  _name,
Random  rand 
)

◆ SerializedPlayer() [2/2]

SerializedPlayer.SerializedPlayer ( String  _name,
float[]  genome,
int  _spriteIndex 
)

Member Function Documentation

◆ chooseValue()

static float SerializedPlayer.chooseValue ( int  valueIndex,
Random  rand 
)
static

◆ generateGenome()

static float[] SerializedPlayer.generateGenome ( Random  rand)
static

◆ genome()

float[] SerializedPlayer.genome ( )

◆ initFromGenome()

void SerializedPlayer.initFromGenome ( float[]  genome)

◆ mutate()

void SerializedPlayer.mutate ( Random  rand)

◆ randomCrossover()

static SerializedPlayer SerializedPlayer.randomCrossover ( SerializedPlayer  p1,
SerializedPlayer  p2,
Random  rand 
)
static

◆ SetRandomSprite()

void SerializedPlayer.SetRandomSprite ( Random  rand)

◆ singlePointCrossover()

static SerializedPlayer SerializedPlayer.singlePointCrossover ( SerializedPlayer  p1,
SerializedPlayer  p2,
Random  rand 
)
static

Member Data Documentation

◆ airAcceleration

float SerializedPlayer.airAcceleration

◆ airAccelerationFactor

float SerializedPlayer.airAccelerationFactor

◆ airJumpForce

float SerializedPlayer.airJumpForce

◆ attackKey

KeyCode SerializedPlayer.attackKey

◆ drag

float SerializedPlayer.drag

◆ gravityScalar

float SerializedPlayer.gravityScalar

◆ groundAcceleration

float SerializedPlayer.groundAcceleration

◆ groundAccelerationFactor

float SerializedPlayer.groundAccelerationFactor

◆ groundJumpForce

float SerializedPlayer.groundJumpForce

◆ heightScalar

float SerializedPlayer.heightScalar

◆ hitstunDamageScalar

float SerializedPlayer.hitstunDamageScalar

◆ jumpKey

KeyCode SerializedPlayer.jumpKey

◆ jumpRatio

float SerializedPlayer.jumpRatio

◆ leftKey

KeyCode SerializedPlayer.leftKey

◆ mass

float SerializedPlayer.mass

◆ maxAirSpeed

float SerializedPlayer.maxAirSpeed

◆ maxGroundSpeed

float SerializedPlayer.maxGroundSpeed

◆ playerName

String SerializedPlayer.playerName

◆ ranges

float [,] SerializedPlayer.ranges
static
Initial value:
= {
{2f, 10f},
{2f, 10f},
{0f, 1f},
{0f, 1f},
{5f, 17f},
{0.2f, 0.9f},
{0.5f, 2.5f},
{1f, 6f},
{0.7f, 1.5f},
{0.5f, 1.5f},
{0.3f, 1.3f},
{0.1f, 0.3f},
}

◆ rightKey

KeyCode SerializedPlayer.rightKey

◆ spriteIndex

int SerializedPlayer.spriteIndex

◆ stocks

int SerializedPlayer.stocks

◆ totalJumpForce

float SerializedPlayer.totalJumpForce

◆ widthScalar

float SerializedPlayer.widthScalar

The documentation for this class was generated from the following file: