Cronous Emulation Server Daemon

NonPlayerCharacter Members

NonPlayerCharacter overview

Public Static (Shared) Fields

NPC_MOVEMENT_SPEEDMovement speed of all NPCs.
NPC_REACTION_TIME_MINNPC reaction time in milliseconds.

Public Instance Constructors

NonPlayerCharacter ConstructorInitializes a character.

Public Instance Properties

accuracy (inherited from Character) 
activityCurrent activity.
add_fire (inherited from Character) 
add_lightning (inherited from Character) 
add_poison (inherited from Character) 
add_water (inherited from Character) 
area (inherited from Character)Gets character's area.
attack_max (inherited from Character) 
attack_min (inherited from Character) 
character_class (inherited from Character)Character class.
critical (inherited from Character) 
dead (inherited from Character)Death status.
defense (inherited from Character) 
dodge (inherited from Character) 
first_entry (inherited from Character)Specifies whether the character has just entered an area.
fov (inherited from Character)Field of view.
game_server (inherited from Character)The game server.
hp (inherited from Character)HP.
hp_max (inherited from Character) 
id (inherited from Character)Gets character ID.
map_engine (inherited from Character)Current map engine.
mp (inherited from Character)MP.
mp_max (inherited from Character) 
name (inherited from Character)Gets the name.
new_area (inherited from Character)Gets or sets character's new area.
new_position (inherited from Character)Gets or sets character's new position.
npc_entryCharacter entry.
position (inherited from Character)Gets character's position.
status_flag (inherited from Character)Status flags.
viewing_characters (inherited from Character)Gets currently visible characters
vs_fire (inherited from Character) 
vs_lightning (inherited from Character) 
vs_poison (inherited from Character) 
vs_water (inherited from Character) 

Public Instance Methods

add_status_flag (inherited from Character)Overloaded. Adds a character flag.
appearReports a character appearing in FOV.
change_areaChanges area.
die (inherited from Character)Makes the character die.
disappearReports a character disappearing from FOV.
dispatch_player_viewersOverloaded. Dispatches packets to all player characters in FOV.
dispatch_player_viewers (inherited from Character)Overloaded. Dispatches packets to all player characters in FOV.
enter_areaEnters the new area.
Equals (inherited from Object) Determines whether the specified Object is equal to the current Object.
GetHashCode (inherited from Object) Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
GetType (inherited from Object) Gets the Type of the current instance.
has_status_flag (inherited from Character)Overloaded. Checks whether a character has a specified status flag.
leave_areaLeaves the current area.
make_character_death (inherited from Character)Makes a CharacterDeath packet.
make_character_entry (inherited from Character)Makes a CharacterEntry packet.
make_character_exit (inherited from Character)Makes a CharacterExit packet.
make_character_health (inherited from Character)Makes a CharacterHealth packet.
make_character_position (inherited from Character)Makes a CharacterPosition packet.
make_character_profile (inherited from Character)Makes a CharacterProfile packet.
make_health (inherited from Character)Makes a Health packet.
make_mana (inherited from Character)Makes a Mana packet.
make_skill_using (inherited from Character)Makes a SkillUsing packet.
make_status_flag (inherited from Character)Makes a StatusFlag packet.
plan_attack (inherited from Character) Calculates the damage of an attack, according to character's offensive parameters.
prevent_attack (inherited from Character) Modifies the damage of an attack according to character's defensive parameters. Applies the damages.
processProcesses activity.
receive_attackDo some actions on damage reception.
refresh (inherited from Character)Refreshes status, skills.
remove_status_flag (inherited from Character)Overloaded. Removes a character flag.
report (inherited from Character)Reports any changes.
report_character_fov (inherited from Character)Reports changes of characters in FOV.
report_death (inherited from Character)Reports death to viewing characters.
report_movementsReports movements.
send_profile (inherited from Character)Sends this character's profile to a player character.
ToString (inherited from Object) Returns a String that represents the current Object.
update_motions (inherited from Character)Checks character positions.
update_warps (inherited from Character)Checks character warps.
use_skill (inherited from Character)Uses a skill.

Protected Instance Fields

_accuracy (inherited from Character) 
_activityCurrent activity.
_add_fire (inherited from Character) 
_add_lightning (inherited from Character) 
_add_poison (inherited from Character) 
_add_water (inherited from Character) 
_area (inherited from Character)Character's area.
_attack_max (inherited from Character) 
_attack_min (inherited from Character) 
_character_class (inherited from Character)Character class.
_critical (inherited from Character) 
_dead (inherited from Character)Death status.
_defense (inherited from Character) 
_dodge (inherited from Character) 
_first_entry (inherited from Character)Specifies whether the character has just entered an area.
_fov (inherited from Character)Field of view.
_game_server (inherited from Character)The game server.
_hp (inherited from Character)HP.
_hp_max (inherited from Character) 
_id (inherited from Character)Character ID.
_map_engine (inherited from Character)Current map engine.
_mp (inherited from Character)MP.
_mp_max (inherited from Character) 
_name (inherited from Character)Name.
_new_area (inherited from Character)Character's new area.
_new_position (inherited from Character)Character's new position.
_position (inherited from Character)Character's position.
_status_flag (inherited from Character)Status flags.
_viewing_characters (inherited from Character)Currently visible characters
_vs_fire (inherited from Character) 
_vs_lightning (inherited from Character) 
_vs_poison (inherited from Character) 
_vs_water (inherited from Character) 

Protected Instance Methods

Finalize (inherited from Object) Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
MemberwiseClone (inherited from Object) Creates a shallow copy of the current Object.
process_appearing_character (inherited from Character)Processes an appearing character.
process_disappearing_character (inherited from Character)Processes a disappearing character.

See Also

NonPlayerCharacter Class | croemud.character Namespace