C# Class ExampleMod.NPCs.PuritySpirit.PuritySpirit

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

Public Properties

Property Type Description
arenaHeight int
arenaWidth int
attackWeights int[]
targets IList

Private Properties

Property Type Description
BeamAttack void
CanBeHitByPlayer bool?
DoAttack void
DoShield void
GetPacket Terraria.ModLoader.ModPacket
LaserAttack void
ModifyHit void
OnHit void
PlaySound void
SetupCrystals void
SnakeAttack void
SphereAttack void
Talk void
UltimateAttack void
UpdateParticles void

Public Methods

Method Description
AI ( ) : void
BossLoot ( string &name, int &potionType ) : void
CanBeHitByItem ( Player player, Item item ) : bool?
CanBeHitByProjectile ( Projectile projectile ) : bool?
CheckDead ( ) : bool
DrawHealthBar ( byte hbPosition, float &scale, Vector2 &position ) : bool?
FindPlayers ( ) : void
FinishFight1 ( ) : void
FinishFight2 ( ) : void
HandlePacket ( BinaryReader reader ) : void
Initialize ( ) : 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
NPCLoot ( ) : void
OnHitByItem ( Player player, Item item, int damage, float knockback, bool crit ) : void
OnHitByProjectile ( Projectile projectile, int damage, float knockback, bool crit ) : void
PostDraw ( SpriteBatch spriteBatch, Color drawColor ) : void
PreDraw ( SpriteBatch spriteBatch, Color drawColor ) : bool
RunAway ( ) : void
ScaleExpertStats ( int numPlayers, float bossLifeScale ) : void
SetDefaults ( ) : void
StrikeNPC ( double &damage, int defense, float &knockback, int hitDirection, bool &crit ) : bool

Private Methods

Method Description
BeamAttack ( ) : void
CanBeHitByPlayer ( Player player ) : bool?
DoAttack ( int numAttacks ) : void
DoShield ( int numShields ) : void
GetPacket ( PuritySpiritMessageType type ) : ModPacket
LaserAttack ( ) : void
ModifyHit ( int &damage ) : void
OnHit ( int damage ) : void
PlaySound ( int type, int style ) : void
SetupCrystals ( int radius, bool clockwise ) : void
SnakeAttack ( ) : void
SphereAttack ( ) : void
Talk ( string message ) : void
UltimateAttack ( ) : void
UpdateParticles ( ) : void

Method Details

AI() public method

public AI ( ) : void
return void

BossLoot() public method

public BossLoot ( string &name, int &potionType ) : void
name string
potionType int
return void

CanBeHitByItem() public method

public CanBeHitByItem ( Player player, Item item ) : bool?
player Terraria.Player
item Item
return bool?

CanBeHitByProjectile() public method

public CanBeHitByProjectile ( Projectile projectile ) : bool?
projectile Terraria.Projectile
return bool?

CheckDead() public method

public CheckDead ( ) : bool
return bool

DrawHealthBar() public method

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

FindPlayers() public method

public FindPlayers ( ) : void
return void

FinishFight1() public method

public FinishFight1 ( ) : void
return void

FinishFight2() public method

public FinishFight2 ( ) : void
return void

HandlePacket() public method

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

Initialize() public method

public Initialize ( ) : void
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

NPCLoot() public method

public NPCLoot ( ) : void
return void

OnHitByItem() public method

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

OnHitByProjectile() public method

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

PostDraw() public method

public PostDraw ( SpriteBatch spriteBatch, Color drawColor ) : void
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
drawColor Color
return void

PreDraw() public method

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

RunAway() public method

public RunAway ( ) : void
return void

ScaleExpertStats() public method

public ScaleExpertStats ( int numPlayers, float bossLifeScale ) : void
numPlayers int
bossLifeScale float
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

Property Details

arenaHeight public_oe static_oe property

public static int arenaHeight
return int

arenaWidth public_oe static_oe property

public static int arenaWidth
return int

attackWeights public_oe property

public int[] attackWeights
return int[]

targets public_oe property

public IList targets
return IList