C# Class Terraria.ModLoader.ModPlayer

ファイルを表示 Open project: bluemagic123/tModLoader Class Usage Examples

Public Methods

Method Description
AnglerQuestReward ( float rareMultiplier, List rewardItems ) : void
Autoload ( string &name ) : bool
CanBeHitByNPC ( NPC npc, int &cooldownSlot ) : bool
CanBeHitByProjectile ( Projectile proj ) : bool
CanHitNPC ( System.Item item, NPC target ) : bool?
CanHitNPCWithProj ( Projectile proj, NPC target ) : bool?
CanHitPvp ( System.Item item, Player target ) : bool
CanHitPvpWithProj ( Projectile proj, Player target ) : bool
CatchFish ( System.Item fishingRod, System.Item bait, int power, int liquidType, int poolSize, int worldLayer, int questFish, int &caughtType, bool &junk ) : void
ConsumeAmmo ( System.Item weapon, System.Item ammo ) : bool
CopyCustomBiomesTo ( Player other ) : void
CustomBiomesMatch ( Player other ) : bool
DrawEffects ( Terraria.ModLoader.PlayerDrawInfo drawInfo, float &r, float &g, float &b, float &a, bool &fullBright ) : void
FrameEffects ( ) : void
GetDyeTraderReward ( List rewardPool ) : void
GetFishingLevel ( System.Item fishingRod, System.Item bait, int &fishingLevel ) : void
GetMapBackgroundImage ( ) : Microsoft.Xna.Framework.Graphics.Texture2D
GetWeaponDamage ( System.Item item, int &damage ) : void
GetWeaponKnockback ( System.Item item, float &knockback ) : void
Hurt ( bool pvp, bool quiet, double damage, int hitDirection, bool crit ) : void
Initialize ( ) : void
Kill ( double damage, int hitDirection, bool pvp, PlayerDeathReason damageSource ) : void
Load ( TagCompound tag ) : void
LoadLegacy ( BinaryReader reader ) : void
MeleeEffects ( System.Item item, Rectangle hitbox ) : void
ModifyDrawHeadLayers ( List layers ) : void
ModifyDrawInfo ( Terraria.ModLoader.PlayerDrawInfo &drawInfo ) : void
ModifyDrawLayers ( List layers ) : void
ModifyHitByNPC ( NPC npc, int &damage, bool &crit ) : void
ModifyHitByProjectile ( Projectile proj, int &damage, bool &crit ) : void
ModifyHitNPC ( System.Item item, NPC target, int &damage, float &knockback, bool &crit ) : void
ModifyHitNPCWithProj ( Projectile proj, NPC target, int &damage, float &knockback, bool &crit, int &hitDirection ) : void
ModifyHitPvp ( System.Item item, Player target, int &damage, bool &crit ) : void
ModifyHitPvpWithProj ( Projectile proj, Player target, int &damage, bool &crit ) : void
ModifyScreenPosition ( ) : void
ModifyZoom ( float &zoom ) : void
NaturalLifeRegen ( float &regen ) : void
OnEnterWorld ( Player player ) : void
OnHitAnything ( float x, float y, System.Entity victim ) : void
OnHitByNPC ( NPC npc, int damage, bool crit ) : void
OnHitByProjectile ( Projectile proj, int damage, bool crit ) : void
OnHitNPC ( System.Item item, NPC target, int damage, float knockback, bool crit ) : void
OnHitNPCWithProj ( Projectile proj, NPC target, int damage, float knockback, bool crit ) : void
OnHitPvp ( System.Item item, Player target, int damage, bool crit ) : void
OnHitPvpWithProj ( Projectile proj, Player target, int damage, bool crit ) : void
PlayerConnect ( Player player ) : void
PlayerDisconnect ( Player player ) : void
PostHurt ( bool pvp, bool quiet, double damage, int hitDirection, bool crit ) : void
PostItemCheck ( ) : void
PostUpdate ( ) : void
PostUpdateBuffs ( ) : void
PostUpdateEquips ( ) : void
PostUpdateMiscEffects ( ) : void
PostUpdateRunSpeeds ( ) : void
PreHurt ( bool pvp, bool quiet, int &damage, int &hitDirection, bool &crit, bool &customDamage, bool &playSound, bool &genGore, PlayerDeathReason &damageSource ) : bool
PreItemCheck ( ) : bool
PreKill ( double damage, int hitDirection, bool pvp, bool &playSound, bool &genGore, PlayerDeathReason &damageSource ) : bool
PreSaveCustomData ( ) : void
PreUpdate ( ) : void
PreUpdateBuffs ( ) : void
ProcessTriggers ( TriggersSet triggersSet ) : void
ReceiveCustomBiomes ( BinaryReader reader ) : void
ResetEffects ( ) : void
Save ( ) : TagCompound
SendClientChanges ( ModPlayer clientPlayer ) : void
SendCustomBiomes ( BinaryWriter writer ) : void
SetControls ( ) : void
SetupStartInventory ( IList items ) : void
Shoot ( System.Item item, Vector2 &position, float &speedX, float &speedY, int &type, int &damage, float &knockBack ) : bool
SyncPlayer ( int toWho, int fromWho, bool newPlayer ) : void
TypeEquals ( ModPlayer other ) : bool
UpdateBadLifeRegen ( ) : void
UpdateBiomeVisuals ( ) : void
UpdateBiomes ( ) : void
UpdateDead ( ) : void
UpdateEquips ( bool &wallSpeedBuff, bool &tileSpeedBuff, bool &tileRangeBuff ) : void
UpdateLifeRegen ( ) : void
UpdateVanityAccessories ( ) : void
clientClone ( ModPlayer clientClone ) : void

Private Methods

Method Description
CreateFor ( Player newPlayer ) : ModPlayer

Method Details

AnglerQuestReward() public method

public AnglerQuestReward ( float rareMultiplier, List rewardItems ) : void
rareMultiplier float
rewardItems List
return void

Autoload() public method

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

CanBeHitByNPC() public method

public CanBeHitByNPC ( NPC npc, int &cooldownSlot ) : bool
npc NPC
cooldownSlot int
return bool

CanBeHitByProjectile() public method

public CanBeHitByProjectile ( Projectile proj ) : bool
proj Projectile
return bool

CanHitNPC() public method

public CanHitNPC ( System.Item item, NPC target ) : bool?
item System.Item
target NPC
return bool?

CanHitNPCWithProj() public method

public CanHitNPCWithProj ( Projectile proj, NPC target ) : bool?
proj Projectile
target NPC
return bool?

CanHitPvp() public method

public CanHitPvp ( System.Item item, Player target ) : bool
item System.Item
target Player
return bool

CanHitPvpWithProj() public method

public CanHitPvpWithProj ( Projectile proj, Player target ) : bool
proj Projectile
target Player
return bool

CatchFish() public method

public CatchFish ( System.Item fishingRod, System.Item bait, int power, int liquidType, int poolSize, int worldLayer, int questFish, int &caughtType, bool &junk ) : void
fishingRod System.Item
bait System.Item
power int
liquidType int
poolSize int
worldLayer int
questFish int
caughtType int
junk bool
return void

ConsumeAmmo() public method

public ConsumeAmmo ( System.Item weapon, System.Item ammo ) : bool
weapon System.Item
ammo System.Item
return bool

CopyCustomBiomesTo() public method

public CopyCustomBiomesTo ( Player other ) : void
other Player
return void

CustomBiomesMatch() public method

public CustomBiomesMatch ( Player other ) : bool
other Player
return bool

DrawEffects() public method

public DrawEffects ( Terraria.ModLoader.PlayerDrawInfo drawInfo, float &r, float &g, float &b, float &a, bool &fullBright ) : void
drawInfo Terraria.ModLoader.PlayerDrawInfo
r float
g float
b float
a float
fullBright bool
return void

FrameEffects() public method

public FrameEffects ( ) : void
return void

GetDyeTraderReward() public method

public GetDyeTraderReward ( List rewardPool ) : void
rewardPool List
return void

GetFishingLevel() public method

public GetFishingLevel ( System.Item fishingRod, System.Item bait, int &fishingLevel ) : void
fishingRod System.Item
bait System.Item
fishingLevel int
return void

GetMapBackgroundImage() public method

public GetMapBackgroundImage ( ) : Microsoft.Xna.Framework.Graphics.Texture2D
return Microsoft.Xna.Framework.Graphics.Texture2D

GetWeaponDamage() public method

public GetWeaponDamage ( System.Item item, int &damage ) : void
item System.Item
damage int
return void

GetWeaponKnockback() public method

public GetWeaponKnockback ( System.Item item, float &knockback ) : void
item System.Item
knockback float
return void

Hurt() public method

public Hurt ( bool pvp, bool quiet, double damage, int hitDirection, bool crit ) : void
pvp bool
quiet bool
damage double
hitDirection int
crit bool
return void

Initialize() public method

public Initialize ( ) : void
return void

Kill() public method

public Kill ( double damage, int hitDirection, bool pvp, PlayerDeathReason damageSource ) : void
damage double
hitDirection int
pvp bool
damageSource PlayerDeathReason
return void

Load() public method

public Load ( TagCompound tag ) : void
tag TagCompound
return void

LoadLegacy() public method

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

MeleeEffects() public method

public MeleeEffects ( System.Item item, Rectangle hitbox ) : void
item System.Item
hitbox Microsoft.Xna.Framework.Rectangle
return void

ModifyDrawHeadLayers() public method

public ModifyDrawHeadLayers ( List layers ) : void
layers List
return void

ModifyDrawInfo() public method

public ModifyDrawInfo ( Terraria.ModLoader.PlayerDrawInfo &drawInfo ) : void
drawInfo Terraria.ModLoader.PlayerDrawInfo
return void

ModifyDrawLayers() public method

public ModifyDrawLayers ( List layers ) : void
layers List
return void

ModifyHitByNPC() public method

public ModifyHitByNPC ( NPC npc, int &damage, bool &crit ) : void
npc NPC
damage int
crit bool
return void

ModifyHitByProjectile() public method

public ModifyHitByProjectile ( Projectile proj, int &damage, bool &crit ) : void
proj Projectile
damage int
crit bool
return void

ModifyHitNPC() public method

public ModifyHitNPC ( System.Item item, NPC target, int &damage, float &knockback, bool &crit ) : void
item System.Item
target NPC
damage int
knockback float
crit bool
return void

ModifyHitNPCWithProj() public method

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

ModifyHitPvp() public method

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

ModifyHitPvpWithProj() public method

public ModifyHitPvpWithProj ( Projectile proj, Player target, int &damage, bool &crit ) : void
proj Projectile
target Player
damage int
crit bool
return void

ModifyScreenPosition() public method

public ModifyScreenPosition ( ) : void
return void

ModifyZoom() public method

public ModifyZoom ( float &zoom ) : void
zoom float
return void

NaturalLifeRegen() public method

public NaturalLifeRegen ( float &regen ) : void
regen float
return void

OnEnterWorld() public method

public OnEnterWorld ( Player player ) : void
player Player
return void

OnHitAnything() public method

public OnHitAnything ( float x, float y, System.Entity victim ) : void
x float
y float
victim System.Entity
return void

OnHitByNPC() public method

public OnHitByNPC ( NPC npc, int damage, bool crit ) : void
npc NPC
damage int
crit bool
return void

OnHitByProjectile() public method

public OnHitByProjectile ( Projectile proj, int damage, bool crit ) : void
proj Projectile
damage int
crit bool
return void

OnHitNPC() public method

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

OnHitNPCWithProj() public method

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

OnHitPvp() public method

public OnHitPvp ( System.Item item, Player target, int damage, bool crit ) : void
item System.Item
target Player
damage int
crit bool
return void

OnHitPvpWithProj() public method

public OnHitPvpWithProj ( Projectile proj, Player target, int damage, bool crit ) : void
proj Projectile
target Player
damage int
crit bool
return void

PlayerConnect() public method

public PlayerConnect ( Player player ) : void
player Player
return void

PlayerDisconnect() public method

public PlayerDisconnect ( Player player ) : void
player Player
return void

PostHurt() public method

public PostHurt ( bool pvp, bool quiet, double damage, int hitDirection, bool crit ) : void
pvp bool
quiet bool
damage double
hitDirection int
crit bool
return void

PostItemCheck() public method

public PostItemCheck ( ) : void
return void

PostUpdate() public method

public PostUpdate ( ) : void
return void

PostUpdateBuffs() public method

public PostUpdateBuffs ( ) : void
return void

PostUpdateEquips() public method

public PostUpdateEquips ( ) : void
return void

PostUpdateMiscEffects() public method

public PostUpdateMiscEffects ( ) : void
return void

PostUpdateRunSpeeds() public method

public PostUpdateRunSpeeds ( ) : void
return void

PreHurt() public method

public PreHurt ( bool pvp, bool quiet, int &damage, int &hitDirection, bool &crit, bool &customDamage, bool &playSound, bool &genGore, PlayerDeathReason &damageSource ) : bool
pvp bool
quiet bool
damage int
hitDirection int
crit bool
customDamage bool
playSound bool
genGore bool
damageSource PlayerDeathReason
return bool

PreItemCheck() public method

public PreItemCheck ( ) : bool
return bool

PreKill() public method

public PreKill ( double damage, int hitDirection, bool pvp, bool &playSound, bool &genGore, PlayerDeathReason &damageSource ) : bool
damage double
hitDirection int
pvp bool
playSound bool
genGore bool
damageSource PlayerDeathReason
return bool

PreSaveCustomData() public method

public PreSaveCustomData ( ) : void
return void

PreUpdate() public method

public PreUpdate ( ) : void
return void

PreUpdateBuffs() public method

public PreUpdateBuffs ( ) : void
return void

ProcessTriggers() public method

public ProcessTriggers ( TriggersSet triggersSet ) : void
triggersSet TriggersSet
return void

ReceiveCustomBiomes() public method

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

ResetEffects() public method

public ResetEffects ( ) : void
return void

Save() public method

public Save ( ) : TagCompound
return TagCompound

SendClientChanges() public method

public SendClientChanges ( ModPlayer clientPlayer ) : void
clientPlayer ModPlayer
return void

SendCustomBiomes() public method

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

SetControls() public method

public SetControls ( ) : void
return void

SetupStartInventory() public method

public SetupStartInventory ( IList items ) : void
items IList
return void

Shoot() public method

public Shoot ( System.Item item, Vector2 &position, float &speedX, float &speedY, int &type, int &damage, float &knockBack ) : bool
item System.Item
position Vector2
speedX float
speedY float
type int
damage int
knockBack float
return bool

SyncPlayer() public method

public SyncPlayer ( int toWho, int fromWho, bool newPlayer ) : void
toWho int
fromWho int
newPlayer bool
return void

TypeEquals() public method

public TypeEquals ( ModPlayer other ) : bool
other ModPlayer
return bool

UpdateBadLifeRegen() public method

public UpdateBadLifeRegen ( ) : void
return void

UpdateBiomeVisuals() public method

public UpdateBiomeVisuals ( ) : void
return void

UpdateBiomes() public method

public UpdateBiomes ( ) : void
return void

UpdateDead() public method

public UpdateDead ( ) : void
return void

UpdateEquips() public method

public UpdateEquips ( bool &wallSpeedBuff, bool &tileSpeedBuff, bool &tileRangeBuff ) : void
wallSpeedBuff bool
tileSpeedBuff bool
tileRangeBuff bool
return void

UpdateLifeRegen() public method

public UpdateLifeRegen ( ) : void
return void

UpdateVanityAccessories() public method

public UpdateVanityAccessories ( ) : void
return void

clientClone() public method

public clientClone ( ModPlayer clientClone ) : void
clientClone ModPlayer
return void