C# Class Terraria.ModLoader.ModProjectile

Mostrar archivo Open project: bluemagic123/tModLoader Class Usage Examples

Public Properties

Property Type Description
aiType int
cooldownSlot int
drawHeldProjInFrontOfHeldItemAndArms bool
drawOffsetX int
drawOriginOffsetX float
drawOriginOffsetY int

Public Methods

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

Private Methods

Method Description
SetupProjectile ( Projectile projectile ) : void

Method Details

AI() public method

public AI ( ) : void
return void

Autoload() public method

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

CanCutTiles() public method

public CanCutTiles ( ) : bool?
return bool?

CanDamage() public method

public CanDamage ( ) : bool
return bool

CanHitNPC() public method

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

CanHitPlayer() public method

public CanHitPlayer ( Player target ) : bool
target Terraria.Player
return bool

CanHitPvp() public method

public CanHitPvp ( Player target ) : bool
target Terraria.Player
return bool

CanUseGrapple() public method

public CanUseGrapple ( Player player ) : bool?
player Terraria.Player
return bool?

Colliding() public method

public Colliding ( Rectangle projHitbox, Rectangle targetHitbox ) : bool?
projHitbox Microsoft.Xna.Framework.Rectangle
targetHitbox Microsoft.Xna.Framework.Rectangle
return bool?

DrawBehind() public method

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

GetAlpha() public method

public GetAlpha ( Color lightColor ) : Color?
lightColor Color
return Color?

GrappleRange() public method

public GrappleRange ( ) : float
return float

GrappleRetreatSpeed() public method

public GrappleRetreatSpeed ( Player player, float &speed ) : void
player Terraria.Player
speed float
return void

Kill() public method

public Kill ( int timeLeft ) : void
timeLeft int
return void

MinionContactDamage() public method

public MinionContactDamage ( ) : bool
return bool

ModProjectile() public method

public ModProjectile ( ) : System
return System

ModifyHitNPC() public method

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

ModifyHitPlayer() public method

public ModifyHitPlayer ( Player target, int &damage, bool &crit ) : void
target Terraria.Player
damage int
crit bool
return void

ModifyHitPvp() public method

public ModifyHitPvp ( Player target, int &damage, bool &crit ) : void
target Terraria.Player
damage int
crit bool
return void

NumGrappleHooks() public method

public NumGrappleHooks ( Player player, int &numHooks ) : void
player Terraria.Player
numHooks int
return void

OnHitNPC() public method

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

OnHitPlayer() public method

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

OnHitPvp() public method

public OnHitPvp ( Player target, int damage, bool crit ) : void
target Terraria.Player
damage int
crit bool
return void

OnTileCollide() public method

public OnTileCollide ( Vector2 oldVelocity ) : bool
oldVelocity Vector2
return bool

PostAI() public method

public PostAI ( ) : void
return void

PostDraw() public method

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

PreAI() public method

public PreAI ( ) : bool
return bool

PreDraw() public method

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

PreDrawExtras() public method

public PreDrawExtras ( SpriteBatch spriteBatch ) : bool
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
return bool

PreKill() public method

public PreKill ( int timeLeft ) : bool
timeLeft int
return bool

ReceiveExtraAI() public method

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

SendExtraAI() public method

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

SetDefaults() public method

public SetDefaults ( ) : void
return void

ShouldUpdatePosition() public method

public ShouldUpdatePosition ( ) : bool
return bool

SingleGrappleHook() public method

public SingleGrappleHook ( Player player ) : bool?
player Terraria.Player
return bool?

TileCollideStyle() public method

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

UseGrapple() public method

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

Property Details

aiType public_oe property

public int aiType
return int

cooldownSlot public_oe property

public int cooldownSlot
return int

drawHeldProjInFrontOfHeldItemAndArms public_oe property

public bool drawHeldProjInFrontOfHeldItemAndArms
return bool

drawOffsetX public_oe property

public int drawOffsetX
return int

drawOriginOffsetX public_oe property

public float drawOriginOffsetX
return float

drawOriginOffsetY public_oe property

public int drawOriginOffsetY
return int