C# Class ExampleMod.NPCs.Abomination.Abomination

Inheritance: Terraria.ModLoader.ModNPC
Mostrar archivo Open project: bluemagic123/tModLoader Class Usage Examples

Private Properties

Property Type Description
ExpertLaser void

Public Methods

Method 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

Method Description
ExpertLaser ( ) : void

Method Details

AI() public method

public AI ( ) : void
return void

DrawHealthBar() public method

public DrawHealthBar ( byte hbPosition, float &scale, Vector2 &position ) : bool?
hbPosition byte
scale float
position Vector2
return bool?

FindFrame() public method

public FindFrame ( int frameHeight ) : void
frameHeight int
return void

HitEffect() public method

public HitEffect ( int hitDirection, double damage ) : void
hitDirection int
damage double
return void

ModifyHitByItem() public method

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

ModifyHitByProjectile() public method

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

OnHitPlayer() public method

public OnHitPlayer ( Player player, int damage, bool crit ) : void
player Terraria.Player
damage int
crit bool
return void

PreDraw() public method

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

PreNPCLoot() public method

public PreNPCLoot ( ) : bool
return bool

ReceiveExtraAI() public method

public ReceiveExtraAI ( BinaryReader reader ) : void
reader System.IO.BinaryReader
return void

ScaleExpertStats() public method

public ScaleExpertStats ( int numPlayers, float bossLifeScale ) : void
numPlayers int
bossLifeScale float
return void

SendExtraAI() public method

public SendExtraAI ( BinaryWriter writer ) : void
writer System.IO.BinaryWriter
return void

SetDefaults() public method

public SetDefaults ( ) : void
return void

StrikeNPC() public method

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