C# Class ExampleMod.Items.Weapons.ExampleDualUseWeapon

Inheritance: Terraria.ModLoader.ModItem
Show file Open project: bluemagic123/tModLoader

Public Methods

Method Description
AddRecipes ( ) : void
AltFunctionUse ( Player player ) : bool
CanUseItem ( Player player ) : bool
MeleeEffects ( Player player, Rectangle hitbox ) : void
OnHitNPC ( Player player, Terraria.NPC target, int damage, float knockBack, bool crit ) : void
SetDefaults ( ) : void
Shoot ( Player player, Vector2 &position, float &speedX, float &speedY, int &type, int &damage, float &knockBack ) : bool

Method Details

AddRecipes() public method

public AddRecipes ( ) : void
return void

AltFunctionUse() public method

public AltFunctionUse ( Player player ) : bool
player Terraria.Player
return bool

CanUseItem() public method

public CanUseItem ( Player player ) : bool
player Terraria.Player
return bool

MeleeEffects() public method

public MeleeEffects ( Player player, Rectangle hitbox ) : void
player Terraria.Player
hitbox Microsoft.Xna.Framework.Rectangle
return void

OnHitNPC() public method

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

SetDefaults() public method

public SetDefaults ( ) : void
return void

Shoot() public method

public Shoot ( Player player, Vector2 &position, float &speedX, float &speedY, int &type, int &damage, float &knockBack ) : bool
player Terraria.Player
position Vector2
speedX float
speedY float
type int
damage int
knockBack float
return bool