C# Class ExampleMod.NPCs.PuritySpirit.PuritySpirit

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

Méthodes publiques

Свойство Type Description
arenaHeight int
arenaWidth int
attackWeights int[]
targets IList

Private Properties

Свойство 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

Méthodes publiques

Méthode 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

Méthode 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 méthode

public AI ( ) : void
Résultat void

BossLoot() public méthode

public BossLoot ( string &name, int &potionType ) : void
name string
potionType int
Résultat void

CanBeHitByItem() public méthode

public CanBeHitByItem ( Player player, Item item ) : bool?
player Terraria.Player
item Item
Résultat bool?

CanBeHitByProjectile() public méthode

public CanBeHitByProjectile ( Projectile projectile ) : bool?
projectile Terraria.Projectile
Résultat bool?

CheckDead() public méthode

public CheckDead ( ) : bool
Résultat bool

DrawHealthBar() public méthode

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

FindPlayers() public méthode

public FindPlayers ( ) : void
Résultat void

FinishFight1() public méthode

public FinishFight1 ( ) : void
Résultat void

FinishFight2() public méthode

public FinishFight2 ( ) : void
Résultat void

HandlePacket() public méthode

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

Initialize() public méthode

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

NPCLoot() public méthode

public NPCLoot ( ) : void
Résultat void

OnHitByItem() public méthode

public OnHitByItem ( 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

OnHitByProjectile() public méthode

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

PostDraw() public méthode

public PostDraw ( SpriteBatch spriteBatch, Color drawColor ) : void
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
drawColor Color
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

RunAway() public méthode

public RunAway ( ) : void
Résultat void

ScaleExpertStats() public méthode

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

Property Details

arenaHeight public_oe static_oe property

public static int arenaHeight
Résultat int

arenaWidth public_oe static_oe property

public static int arenaWidth
Résultat int

attackWeights public_oe property

public int[] attackWeights
Résultat int[]

targets public_oe property

public IList targets
Résultat IList