C# Class Terraria.ModLoader.GlobalProjectile

Mostrar archivo Open project: bluemagic123/tModLoader Class Usage Examples

Public Methods

Method Description
AI ( Projectile projectile ) : void
Autoload ( string &name ) : bool
CanCutTiles ( Projectile projectile ) : bool?
CanDamage ( Projectile projectile ) : bool
CanHitNPC ( Projectile projectile, Terraria.NPC target ) : bool?
CanHitPlayer ( Projectile projectile, Player target ) : bool
CanHitPvp ( Projectile projectile, Player target ) : bool
CanUseGrapple ( int type, Player player ) : bool?
Colliding ( Projectile projectile, Rectangle projHitbox, Rectangle targetHitbox ) : bool?
DrawBehind ( Projectile projectile, int index, List drawCacheProjsBehindNPCsAndTiles, List drawCacheProjsBehindNPCs, List drawCacheProjsBehindProjectiles, List drawCacheProjsOverWiresUI ) : void
GetAlpha ( Projectile projectile, Color lightColor ) : Color?
GrappleRetreatSpeed ( Projectile projectile, Player player, float &speed ) : void
Kill ( Projectile projectile, int timeLeft ) : void
MinionContactDamage ( Projectile projectile ) : bool
ModifyHitNPC ( Projectile projectile, NPC target, int &damage, float &knockback, bool &crit, int &hitDirection ) : void
ModifyHitPlayer ( Projectile projectile, Player target, int &damage, bool &crit ) : void
ModifyHitPvp ( Projectile projectile, Player target, int &damage, bool &crit ) : void
NumGrappleHooks ( Projectile projectile, Player player, int &numHooks ) : void
OnHitNPC ( Projectile projectile, NPC target, int damage, float knockback, bool crit ) : void
OnHitPlayer ( Projectile projectile, Player target, int damage, bool crit ) : void
OnHitPvp ( Projectile projectile, Player target, int damage, bool crit ) : void
OnTileCollide ( Projectile projectile, Vector2 oldVelocity ) : bool
PostAI ( Projectile projectile ) : void
PostDraw ( Projectile projectile, SpriteBatch spriteBatch, Color lightColor ) : void
PreAI ( Projectile projectile ) : bool
PreDraw ( Projectile projectile, SpriteBatch spriteBatch, Color lightColor ) : bool
PreDrawExtras ( Projectile projectile, SpriteBatch spriteBatch ) : bool
PreKill ( Projectile projectile, int timeLeft ) : bool
SetDefaults ( Projectile projectile ) : void
ShouldUpdatePosition ( Projectile projectile ) : bool
SingleGrappleHook ( int type, Player player ) : bool?
TileCollideStyle ( Projectile projectile, int &width, int &height, bool &fallThrough ) : void
UseGrapple ( Player player, int &type ) : void

Method Details

AI() public method

public AI ( Projectile projectile ) : void
projectile Terraria.Projectile
return void

Autoload() public method

public Autoload ( string &name ) : bool
name string
return bool

CanCutTiles() public method

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

CanDamage() public method

public CanDamage ( Projectile projectile ) : bool
projectile Terraria.Projectile
return bool

CanHitNPC() public method

public CanHitNPC ( Projectile projectile, Terraria.NPC target ) : bool?
projectile Terraria.Projectile
target Terraria.NPC
return bool?

CanHitPlayer() public method

public CanHitPlayer ( Projectile projectile, Player target ) : bool
projectile Projectile
target Player
return bool

CanHitPvp() public method

public CanHitPvp ( Projectile projectile, Player target ) : bool
projectile Projectile
target Player
return bool

CanUseGrapple() public method

public CanUseGrapple ( int type, Player player ) : bool?
type int
player Player
return bool?

Colliding() public method

public Colliding ( Projectile projectile, Rectangle projHitbox, Rectangle targetHitbox ) : bool?
projectile Projectile
projHitbox Rectangle
targetHitbox Rectangle
return bool?

DrawBehind() public method

public DrawBehind ( Projectile projectile, int index, List drawCacheProjsBehindNPCsAndTiles, List drawCacheProjsBehindNPCs, List drawCacheProjsBehindProjectiles, List drawCacheProjsOverWiresUI ) : void
projectile Projectile
index int
drawCacheProjsBehindNPCsAndTiles List
drawCacheProjsBehindNPCs List
drawCacheProjsBehindProjectiles List
drawCacheProjsOverWiresUI List
return void

GetAlpha() public method

public GetAlpha ( Projectile projectile, Color lightColor ) : Color?
projectile Projectile
lightColor Color
return Color?

GrappleRetreatSpeed() public method

public GrappleRetreatSpeed ( Projectile projectile, Player player, float &speed ) : void
projectile Projectile
player Player
speed float
return void

Kill() public method

public Kill ( Projectile projectile, int timeLeft ) : void
projectile Projectile
timeLeft int
return void

MinionContactDamage() public method

public MinionContactDamage ( Projectile projectile ) : bool
projectile Projectile
return bool

ModifyHitNPC() public method

public ModifyHitNPC ( Projectile projectile, NPC target, int &damage, float &knockback, bool &crit, int &hitDirection ) : void
projectile Projectile
target NPC
damage int
knockback float
crit bool
hitDirection int
return void

ModifyHitPlayer() public method

public ModifyHitPlayer ( Projectile projectile, Player target, int &damage, bool &crit ) : void
projectile Projectile
target Player
damage int
crit bool
return void

ModifyHitPvp() public method

public ModifyHitPvp ( Projectile projectile, Player target, int &damage, bool &crit ) : void
projectile Projectile
target Player
damage int
crit bool
return void

NumGrappleHooks() public method

public NumGrappleHooks ( Projectile projectile, Player player, int &numHooks ) : void
projectile Projectile
player Player
numHooks int
return void

OnHitNPC() public method

public OnHitNPC ( Projectile projectile, NPC target, int damage, float knockback, bool crit ) : void
projectile Projectile
target NPC
damage int
knockback float
crit bool
return void

OnHitPlayer() public method

public OnHitPlayer ( Projectile projectile, Player target, int damage, bool crit ) : void
projectile Projectile
target Player
damage int
crit bool
return void

OnHitPvp() public method

public OnHitPvp ( Projectile projectile, Player target, int damage, bool crit ) : void
projectile Projectile
target Player
damage int
crit bool
return void

OnTileCollide() public method

public OnTileCollide ( Projectile projectile, Vector2 oldVelocity ) : bool
projectile Projectile
oldVelocity Vector2
return bool

PostAI() public method

public PostAI ( Projectile projectile ) : void
projectile Projectile
return void

PostDraw() public method

public PostDraw ( Projectile projectile, SpriteBatch spriteBatch, Color lightColor ) : void
projectile Projectile
spriteBatch SpriteBatch
lightColor Color
return void

PreAI() public method

public PreAI ( Projectile projectile ) : bool
projectile Projectile
return bool

PreDraw() public method

public PreDraw ( Projectile projectile, SpriteBatch spriteBatch, Color lightColor ) : bool
projectile Projectile
spriteBatch SpriteBatch
lightColor Color
return bool

PreDrawExtras() public method

public PreDrawExtras ( Projectile projectile, SpriteBatch spriteBatch ) : bool
projectile Projectile
spriteBatch SpriteBatch
return bool

PreKill() public method

public PreKill ( Projectile projectile, int timeLeft ) : bool
projectile Projectile
timeLeft int
return bool

SetDefaults() public method

public SetDefaults ( Projectile projectile ) : void
projectile Projectile
return void

ShouldUpdatePosition() public method

public ShouldUpdatePosition ( Projectile projectile ) : bool
projectile Projectile
return bool

SingleGrappleHook() public method

public SingleGrappleHook ( int type, Player player ) : bool?
type int
player Player
return bool?

TileCollideStyle() public method

public TileCollideStyle ( Projectile projectile, int &width, int &height, bool &fallThrough ) : void
projectile Projectile
width int
height int
fallThrough bool
return void

UseGrapple() public method

public UseGrapple ( Player player, int &type ) : void
player Player
type int
return void