C# Class Terraria.ModLoader.ModPlayer

Afficher le fichier Open project: bluemagic123/tModLoader Class Usage Examples

Méthodes publiques

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

Méthode Description
CreateFor ( Player newPlayer ) : ModPlayer

Method Details

AnglerQuestReward() public méthode

public AnglerQuestReward ( float rareMultiplier, List rewardItems ) : void
rareMultiplier float
rewardItems List
Résultat void

Autoload() public méthode

public Autoload ( string &name ) : bool
name string
Résultat bool

CanBeHitByNPC() public méthode

public CanBeHitByNPC ( NPC npc, int &cooldownSlot ) : bool
npc NPC
cooldownSlot int
Résultat bool

CanBeHitByProjectile() public méthode

public CanBeHitByProjectile ( Projectile proj ) : bool
proj Projectile
Résultat bool

CanHitNPC() public méthode

public CanHitNPC ( System.Item item, NPC target ) : bool?
item System.Item
target NPC
Résultat bool?

CanHitNPCWithProj() public méthode

public CanHitNPCWithProj ( Projectile proj, NPC target ) : bool?
proj Projectile
target NPC
Résultat bool?

CanHitPvp() public méthode

public CanHitPvp ( System.Item item, Player target ) : bool
item System.Item
target Player
Résultat bool

CanHitPvpWithProj() public méthode

public CanHitPvpWithProj ( Projectile proj, Player target ) : bool
proj Projectile
target Player
Résultat bool

CatchFish() public méthode

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
Résultat void

ConsumeAmmo() public méthode

public ConsumeAmmo ( System.Item weapon, System.Item ammo ) : bool
weapon System.Item
ammo System.Item
Résultat bool

CopyCustomBiomesTo() public méthode

public CopyCustomBiomesTo ( Player other ) : void
other Player
Résultat void

CustomBiomesMatch() public méthode

public CustomBiomesMatch ( Player other ) : bool
other Player
Résultat bool

DrawEffects() public méthode

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
Résultat void

FrameEffects() public méthode

public FrameEffects ( ) : void
Résultat void

GetDyeTraderReward() public méthode

public GetDyeTraderReward ( List rewardPool ) : void
rewardPool List
Résultat void

GetFishingLevel() public méthode

public GetFishingLevel ( System.Item fishingRod, System.Item bait, int &fishingLevel ) : void
fishingRod System.Item
bait System.Item
fishingLevel int
Résultat void

GetMapBackgroundImage() public méthode

public GetMapBackgroundImage ( ) : Microsoft.Xna.Framework.Graphics.Texture2D
Résultat Microsoft.Xna.Framework.Graphics.Texture2D

GetWeaponDamage() public méthode

public GetWeaponDamage ( System.Item item, int &damage ) : void
item System.Item
damage int
Résultat void

GetWeaponKnockback() public méthode

public GetWeaponKnockback ( System.Item item, float &knockback ) : void
item System.Item
knockback float
Résultat void

Hurt() public méthode

public Hurt ( bool pvp, bool quiet, double damage, int hitDirection, bool crit ) : void
pvp bool
quiet bool
damage double
hitDirection int
crit bool
Résultat void

Initialize() public méthode

public Initialize ( ) : void
Résultat void

Kill() public méthode

public Kill ( double damage, int hitDirection, bool pvp, PlayerDeathReason damageSource ) : void
damage double
hitDirection int
pvp bool
damageSource PlayerDeathReason
Résultat void

Load() public méthode

public Load ( TagCompound tag ) : void
tag TagCompound
Résultat void

LoadLegacy() public méthode

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

MeleeEffects() public méthode

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

ModifyDrawHeadLayers() public méthode

public ModifyDrawHeadLayers ( List layers ) : void
layers List
Résultat void

ModifyDrawInfo() public méthode

public ModifyDrawInfo ( Terraria.ModLoader.PlayerDrawInfo &drawInfo ) : void
drawInfo Terraria.ModLoader.PlayerDrawInfo
Résultat void

ModifyDrawLayers() public méthode

public ModifyDrawLayers ( List layers ) : void
layers List
Résultat void

ModifyHitByNPC() public méthode

public ModifyHitByNPC ( NPC npc, int &damage, bool &crit ) : void
npc NPC
damage int
crit bool
Résultat void

ModifyHitByProjectile() public méthode

public ModifyHitByProjectile ( Projectile proj, int &damage, bool &crit ) : void
proj Projectile
damage int
crit bool
Résultat void

ModifyHitNPC() public méthode

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
Résultat void

ModifyHitNPCWithProj() public méthode

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
Résultat void

ModifyHitPvp() public méthode

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

ModifyHitPvpWithProj() public méthode

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

ModifyScreenPosition() public méthode

public ModifyScreenPosition ( ) : void
Résultat void

ModifyZoom() public méthode

public ModifyZoom ( float &zoom ) : void
zoom float
Résultat void

NaturalLifeRegen() public méthode

public NaturalLifeRegen ( float &regen ) : void
regen float
Résultat void

OnEnterWorld() public méthode

public OnEnterWorld ( Player player ) : void
player Player
Résultat void

OnHitAnything() public méthode

public OnHitAnything ( float x, float y, System.Entity victim ) : void
x float
y float
victim System.Entity
Résultat void

OnHitByNPC() public méthode

public OnHitByNPC ( NPC npc, int damage, bool crit ) : void
npc NPC
damage int
crit bool
Résultat void

OnHitByProjectile() public méthode

public OnHitByProjectile ( Projectile proj, int damage, bool crit ) : void
proj Projectile
damage int
crit bool
Résultat void

OnHitNPC() public méthode

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
Résultat void

OnHitNPCWithProj() public méthode

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

OnHitPvp() public méthode

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

OnHitPvpWithProj() public méthode

public OnHitPvpWithProj ( Projectile proj, Player target, int damage, bool crit ) : void
proj Projectile
target Player
damage int
crit bool
Résultat void

PlayerConnect() public méthode

public PlayerConnect ( Player player ) : void
player Player
Résultat void

PlayerDisconnect() public méthode

public PlayerDisconnect ( Player player ) : void
player Player
Résultat void

PostHurt() public méthode

public PostHurt ( bool pvp, bool quiet, double damage, int hitDirection, bool crit ) : void
pvp bool
quiet bool
damage double
hitDirection int
crit bool
Résultat void

PostItemCheck() public méthode

public PostItemCheck ( ) : void
Résultat void

PostUpdate() public méthode

public PostUpdate ( ) : void
Résultat void

PostUpdateBuffs() public méthode

public PostUpdateBuffs ( ) : void
Résultat void

PostUpdateEquips() public méthode

public PostUpdateEquips ( ) : void
Résultat void

PostUpdateMiscEffects() public méthode

public PostUpdateMiscEffects ( ) : void
Résultat void

PostUpdateRunSpeeds() public méthode

public PostUpdateRunSpeeds ( ) : void
Résultat void

PreHurt() public méthode

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
Résultat bool

PreItemCheck() public méthode

public PreItemCheck ( ) : bool
Résultat bool

PreKill() public méthode

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
Résultat bool

PreSaveCustomData() public méthode

public PreSaveCustomData ( ) : void
Résultat void

PreUpdate() public méthode

public PreUpdate ( ) : void
Résultat void

PreUpdateBuffs() public méthode

public PreUpdateBuffs ( ) : void
Résultat void

ProcessTriggers() public méthode

public ProcessTriggers ( TriggersSet triggersSet ) : void
triggersSet TriggersSet
Résultat void

ReceiveCustomBiomes() public méthode

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

ResetEffects() public méthode

public ResetEffects ( ) : void
Résultat void

Save() public méthode

public Save ( ) : TagCompound
Résultat TagCompound

SendClientChanges() public méthode

public SendClientChanges ( ModPlayer clientPlayer ) : void
clientPlayer ModPlayer
Résultat void

SendCustomBiomes() public méthode

public SendCustomBiomes ( BinaryWriter writer ) : void
writer System.IO.BinaryWriter
Résultat void

SetControls() public méthode

public SetControls ( ) : void
Résultat void

SetupStartInventory() public méthode

public SetupStartInventory ( IList items ) : void
items IList
Résultat void

Shoot() public méthode

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
Résultat bool

SyncPlayer() public méthode

public SyncPlayer ( int toWho, int fromWho, bool newPlayer ) : void
toWho int
fromWho int
newPlayer bool
Résultat void

TypeEquals() public méthode

public TypeEquals ( ModPlayer other ) : bool
other ModPlayer
Résultat bool

UpdateBadLifeRegen() public méthode

public UpdateBadLifeRegen ( ) : void
Résultat void

UpdateBiomeVisuals() public méthode

public UpdateBiomeVisuals ( ) : void
Résultat void

UpdateBiomes() public méthode

public UpdateBiomes ( ) : void
Résultat void

UpdateDead() public méthode

public UpdateDead ( ) : void
Résultat void

UpdateEquips() public méthode

public UpdateEquips ( bool &wallSpeedBuff, bool &tileSpeedBuff, bool &tileRangeBuff ) : void
wallSpeedBuff bool
tileSpeedBuff bool
tileRangeBuff bool
Résultat void

UpdateLifeRegen() public méthode

public UpdateLifeRegen ( ) : void
Résultat void

UpdateVanityAccessories() public méthode

public UpdateVanityAccessories ( ) : void
Résultat void

clientClone() public méthode

public clientClone ( ModPlayer clientClone ) : void
clientClone ModPlayer
Résultat void