C# Class ExampleMod.NPCs.Abomination.Abomination

Inheritance: Terraria.ModLoader.ModNPC
Afficher le fichier Open project: bluemagic123/tModLoader Class Usage Examples

Private Properties

Свойство Type Description
ExpertLaser void

Méthodes publiques

Méthode Description
AI ( ) : void
DrawHealthBar ( byte hbPosition, float &scale, Vector2 &position ) : bool?
FindFrame ( int frameHeight ) : void
HitEffect ( int hitDirection, double damage ) : void
ModifyHitByItem ( Player player, Item item, int &damage, float &knockback, bool &crit ) : void
ModifyHitByProjectile ( Projectile projectile, int &damage, float &knockback, bool &crit, int &hitDirection ) : void
OnHitPlayer ( Player player, int damage, bool crit ) : void
PreDraw ( SpriteBatch spriteBatch, Color drawColor ) : bool
PreNPCLoot ( ) : bool
ReceiveExtraAI ( BinaryReader reader ) : void
ScaleExpertStats ( int numPlayers, float bossLifeScale ) : void
SendExtraAI ( BinaryWriter writer ) : void
SetDefaults ( ) : void
StrikeNPC ( double &damage, int defense, float &knockback, int hitDirection, bool &crit ) : bool

Private Methods

Méthode Description
ExpertLaser ( ) : void

Method Details

AI() public méthode

public AI ( ) : void
Résultat void

DrawHealthBar() public méthode

public DrawHealthBar ( byte hbPosition, float &scale, Vector2 &position ) : bool?
hbPosition byte
scale float
position Vector2
Résultat bool?

FindFrame() public méthode

public FindFrame ( int frameHeight ) : void
frameHeight int
Résultat void

HitEffect() public méthode

public HitEffect ( int hitDirection, double damage ) : void
hitDirection int
damage double
Résultat void

ModifyHitByItem() public méthode

public ModifyHitByItem ( Player player, Item item, int &damage, float &knockback, bool &crit ) : void
player Terraria.Player
item Item
damage int
knockback float
crit bool
Résultat void

ModifyHitByProjectile() public méthode

public ModifyHitByProjectile ( Projectile projectile, int &damage, float &knockback, bool &crit, int &hitDirection ) : void
projectile Terraria.Projectile
damage int
knockback float
crit bool
hitDirection int
Résultat void

OnHitPlayer() public méthode

public OnHitPlayer ( Player player, int damage, bool crit ) : void
player Terraria.Player
damage int
crit bool
Résultat void

PreDraw() public méthode

public PreDraw ( SpriteBatch spriteBatch, Color drawColor ) : bool
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
drawColor Color
Résultat bool

PreNPCLoot() public méthode

public PreNPCLoot ( ) : bool
Résultat bool

ReceiveExtraAI() public méthode

public ReceiveExtraAI ( BinaryReader reader ) : void
reader System.IO.BinaryReader
Résultat void

ScaleExpertStats() public méthode

public ScaleExpertStats ( int numPlayers, float bossLifeScale ) : void
numPlayers int
bossLifeScale float
Résultat void

SendExtraAI() public méthode

public SendExtraAI ( BinaryWriter writer ) : void
writer System.IO.BinaryWriter
Résultat void

SetDefaults() public méthode

public SetDefaults ( ) : void
Résultat void

StrikeNPC() public méthode

public StrikeNPC ( double &damage, int defense, float &knockback, int hitDirection, bool &crit ) : bool
damage double
defense int
knockback float
hitDirection int
crit bool
Résultat bool