Cronous Emulation Server Daemon

MonsterCharacter.can_attack Method (Position)

Checks whether a given character is inside the attack range.

[Visual Basic]
Public Function can_attack( _ 
   ByVal p As Position _ 
) As Boolean
[C#]
public bool can_attack(
   Position p
);
[C++]
public: bool can_attack(
   Position* p
);
[JScript]
public function can_attack(
   Position p
): bool;

Parameters

p
Position to check.

Return Value

true if the object at p can be atacked by the character, false otherwise.

See Also

MonsterCharacter Class | croemud.character Namespace | MonsterCharacter.can_attack Overload List