C# Class Pokemon3D.GameModes.Monsters.Pokemon

A Pokémon instance that holds the definition and save data of a Pokémon instance.
Mostra file Open project: nilllzz/Pokemon3D Class Usage Examples

Public Methods

Method Description
GetMenuTexture ( ) : Microsoft.Xna.Framework.Graphics.Texture2D
Heal ( int healHP ) : void
LearnStartupMoves ( ) : void

Makes the Pokémon learn all moves that are learnt on Level 1.

LevelUp ( bool learnRandomMove, int levels = 1 ) : void

Does level up progress for this Pokémon.

Pokemon ( GameMode gameMode, PokemonModel dataModel, PokemonSaveModel saveModel ) : System.Linq

Private Methods

Method Description
GetActiveFormId ( ) : string
GetMenuTexture ( string pokemonId, string formId, string textureSource ) : Microsoft.Xna.Framework.Graphics.Texture2D
GetMovePoolModel ( PokemonFormModel formModel ) : PokemonFormModel

Returns the model that is responsible for the move pools for a form model.

LearnMove ( int level ) : bool

Attempts to teach this Pokémon a level up move from a specific level. It makes the Pokémon forget a random move if the Pokémon has a full moveset.

Method Details

GetMenuTexture() public method

public GetMenuTexture ( ) : Microsoft.Xna.Framework.Graphics.Texture2D
return Microsoft.Xna.Framework.Graphics.Texture2D

Heal() public method

public Heal ( int healHP ) : void
healHP int
return void

LearnStartupMoves() public method

Makes the Pokémon learn all moves that are learnt on Level 1.
public LearnStartupMoves ( ) : void
return void

LevelUp() public method

Does level up progress for this Pokémon.
public LevelUp ( bool learnRandomMove, int levels = 1 ) : void
learnRandomMove bool
levels int
return void

Pokemon() public method

public Pokemon ( GameMode gameMode, PokemonModel dataModel, PokemonSaveModel saveModel ) : System.Linq
gameMode GameMode
dataModel PokemonModel
saveModel PokemonSaveModel
return System.Linq