SaveGame..::..PlayerCheckRangedHitOnMonster Method

Check whether a ranged attack by the player hits a monster

Namespace:  AngbandOS.Core
Assembly:  AngbandOS.Core (in AngbandOS.Core.dll)

Syntax


public bool PlayerCheckRangedHitOnMonster(
	int attackBonus,
	int armourClass,
	bool monsterIsVisible
)

Parameters

attackBonus
Type: Int32
The player's attack bonus
armourClass
Type: Int32
The monster's armour class
monsterIsVisible
Type: Boolean
Whether or not the monster is visible

Return Value

True if the player hit the monster, false otherwise