Definition at line 15778 of file Player.cs.
15779 {
15781 {
15782 return;
15783 }
15785 {
15787 }
15789 {
15793 {
15795 }
15797 {
15798 float num3 =
Math.Abs((
float)Main.mouseX + Main.screenPosition.X - (
position.X + (
float)(
width / 2)));
15799 float num2 =
Math.Abs((
float)Main.mouseY + Main.screenPosition.Y - (
position.Y + (
float)(
height / 2))) * 1.3f;
15801 {
15803 }
15804 }
15807 {
15809 return;
15810 }
15813 }
15815 {
15817 {
15819 }
15822 }
15824 {
15826 {
15828 }
15831 }
15833 {
15837 }
15838 }
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.
int stack
The current stack of the item. F:Terraria.Item.maxStack indicates the max possible stack.
static int AutoSelect(int i, int j, Player player)
This serves as the central class from which tile-related functions are supported and carried out.
SelectionRadial DpadRadial
void SmartSelect_SelectItem(int t)
void SmartSelect_GetToolStrategy(int tX, int tY, out int toolStrategy, out bool wetTile)
void SmartSelect_PickToolForStrategy(int tX, int tY, int toolStrategy, bool wetTile)
SelectionRadial CircularRadial
int _lastSmartCursorToolStrategy
Item[] inventory
The player's normal inventory. Indexes 0-9 hold the hotbar items, 10-49 the rest of the main inventor...
References Terraria.Player._lastSmartCursorToolStrategy, Terraria.ModLoader.TileLoader.AutoSelect(), Terraria.Player.CircularRadial, Terraria.Player.controlTorch, Terraria.Player.DpadRadial, Terraria.Entity.height, Terraria.Player.inventory, Terraria.Player.itemAnimation, Terraria.Player.mouseInterface, Terraria.Main.mouseX, Terraria.Main.mouseY, Terraria.Player.nonTorch, Terraria.Entity.position, Terraria.Main.screenPosition, Terraria.Player.SelectionRadial.SelectedItem, Terraria.Player.selectedItem, Terraria.Player.SmartSelect_GetToolStrategy(), Terraria.Player.SmartSelect_PickToolForStrategy(), Terraria.Player.SmartSelect_SelectItem(), Terraria.GameInput.PlayerInput.smartSelectPointer, Terraria.Item.stack, Terraria.GameInput.PlayerInput.UsingGamepad, and Terraria.Entity.width.
Referenced by Terraria.Player.ItemCheck_Inner().