Definition at line 18859 of file Player.cs.
18860 {
18861
18862
18863
18864
18865
18867 for (int i = 0; i < 200; i++)
18868 {
18871 {
18872 continue;
18873 }
18874 Rectangle
rect =
nPC.getRect();
18876 {
18879 {
18881 }
18883 {
18885 }
18886 if (
whoAmI == Main.myPlayer)
18887 {
18889 }
18893 break;
18894 }
18895 }
18897 }
int whoAmI
The index of this Entity within its specific array. These arrays track the entities in the world....
Vector2 velocity
The velocity of this Entity in world coordinates per tick.
Vector2 position
The position of this Entity in world coordinates.
int width
The width of this Entity's hitbox, in pixels.
int height
The height of this Entity's hitbox, in pixels.
bool CanNPCBeHitByPlayerOrPlayerProjectile(NPC npc, Projectile projectile=null)
void ApplyDamageToNPC(NPC npc, int damage, float knockback, int direction, bool crit=false, DamageClass? damageType=null, bool damageVariation=false)
Deals damage to an NPC (and syncs the hit in multiplayer). The damage will be affected by modifiers...
void GiveImmuneTimeForCollisionAttack(int time)
References Terraria.Player.ApplyDamageToNPC(), Terraria.Collision.CanHit(), Terraria.Player.CanNPCBeHitByPlayerOrPlayerProjectile(), Terraria.GameContent.Damage, Terraria.Entity.direction, Terraria.Player.GiveImmuneTimeForCollisionAttack(), Terraria.Entity.height, Terraria.Main.myPlayer, Terraria.Main.npc, Terraria.Entity.position, Terraria.Entity.velocity, Terraria.Entity.whoAmI, and Terraria.Entity.width.
Referenced by Terraria.Player.HorizontalMovement(), and Terraria.Player.MowTheLawn().