The Pokemon class manages all logic for pokemon
More...
The Pokemon class manages all logic for pokemon
Definition at line 9 of file Pokemon.cs.
◆ Pokemon() [1/2]
◆ Pokemon() [2/2]
◆ ApplyBoosts()
void Pokemon.ApplyBoosts |
( |
List< StatBoost > |
statBoosts | ) |
|
Apply stat boosts to the pokemon
- Parameters
-
statBoosts | The boosts to apply |
Definition at line 211 of file Pokemon.cs.
◆ CheckForLevelUp()
bool Pokemon.CheckForLevelUp |
( |
| ) |
|
Check if the pokemon should level up and if it should, then level it up
- Returns
- Whether the pokemon leveled up
Definition at line 318 of file Pokemon.cs.
◆ CureStatus()
void Pokemon.CureStatus |
( |
| ) |
|
Remove all status effects from the pokemon
Definition at line 201 of file Pokemon.cs.
◆ CureVolatileStatus()
void Pokemon.CureVolatileStatus |
( |
| ) |
|
Remove all volatile status effects from the pokemon
Definition at line 245 of file Pokemon.cs.
◆ DecreaseHP()
void Pokemon.DecreaseHP |
( |
int |
damage | ) |
|
Decrease the HP of the pokemon
- Parameters
-
damage | How much HP to decrease by |
Definition at line 254 of file Pokemon.cs.
◆ GetLearnableMoveAtCurrentLevel()
◆ GetRandomMove()
Move Pokemon.GetRandomMove |
( |
| ) |
|
Get a random move from the pokemon's move list
Definition at line 176 of file Pokemon.cs.
◆ GetSaveData()
◆ IncreaseHP()
void Pokemon.IncreaseHP |
( |
int |
amt | ) |
|
◆ Init()
◆ LearnMove()
◆ OnAfterTurn()
void Pokemon.OnAfterTurn |
( |
| ) |
|
Ran after a pokemon's turn
Definition at line 273 of file Pokemon.cs.
◆ OnBattleOver()
void Pokemon.OnBattleOver |
( |
| ) |
|
◆ OnBeforeTurn()
bool Pokemon.OnBeforeTurn |
( |
| ) |
|
Ran before a pokemon's turn
- Returns
- A bool representing whether or not the pokemon can perform their move
Definition at line 283 of file Pokemon.cs.
◆ SetStatus()
void Pokemon.SetStatus |
( |
ConditionID |
conditionID | ) |
|
Set the status of the pokemon
- Parameters
-
Definition at line 188 of file Pokemon.cs.
◆ SetVolatileStatus()
void Pokemon.SetVolatileStatus |
( |
ConditionID |
conditionID | ) |
|
Set the volatile status of the pokemon
- Parameters
-
ConditionID | The ConditionID of the volatile status to set |
Definition at line 233 of file Pokemon.cs.
◆ TakeDamage()
Causes the specified pokemon to take damage
- Parameters
-
move | The move to apply to the pokemon |
attacker | The attacking pokemon |
- Returns
- A DamageDetails class containing the effectiveness of the attack, whether it was a critical, and whether or not the pokemon fainted
Definition at line 142 of file Pokemon.cs.
◆ Attack
◆ Base
◆ CurrentMove
◆ Defense
◆ Exp
◆ HP
◆ Level
◆ MaxHp
◆ Moves
◆ SpecialAttack
int Pokemon.SpecialAttack |
|
get |
◆ SpecialDefense
int Pokemon.SpecialDefense |
|
get |
◆ Speed
◆ StatBoosts
Dictionary<Stat, int> Pokemon.StatBoosts |
|
get |
◆ Stats
Dictionary<Stat, int> Pokemon.Stats |
|
get |
◆ Status
◆ StatusChanges
Queue<string> Pokemon.StatusChanges |
|
get |
◆ StatusTime
◆ VolatileStatus
◆ VolatileStatusTime
int Pokemon.VolatileStatusTime |
|
getset |
◆ OnHPChanged
System.Action Pokemon.OnHPChanged |
◆ OnStatusChanged
System.Action Pokemon.OnStatusChanged |
The documentation for this class was generated from the following file: