C# Class Pokemon3D.GameModes.Monsters.PokemonFactory

Used to create Pokemon instances.
显示文件 Open project: nilllzz/Pokemon3D Class Usage Examples

Public Methods

Method Description
GetPokemon ( PokemonSaveModel saveModel ) : Pokemon
GetPokemon ( string pokemonId, int level ) : Pokemon
PokemonFactory ( GameMode gameMode ) : Pokemon3D.DataModel.GameMode.Pokemon

Private Methods

Method Description
CreatePokemon ( PokemonModel dataModel, int level ) : Pokemon
GeneratePersonalityValue ( ) : string

Generates a personality value for a Pokémon from 10 random numbers and letters.

PopulateSaveModel ( PokemonModel dataModel, PokemonSaveModel saveModel, int level ) : void

Method Details

GetPokemon() public method

public GetPokemon ( PokemonSaveModel saveModel ) : Pokemon
saveModel PokemonSaveModel
return Pokemon

GetPokemon() public method

public GetPokemon ( string pokemonId, int level ) : Pokemon
pokemonId string
level int
return Pokemon

PokemonFactory() public method

public PokemonFactory ( GameMode gameMode ) : Pokemon3D.DataModel.GameMode.Pokemon
gameMode GameMode
return Pokemon3D.DataModel.GameMode.Pokemon