Main Page | Modules | Alphabetical List | Data Structures | File List | Data Fields | Globals | Related Pages

src/pet.c File Reference


Detailed Description

AI for friendly creatures and monster-vs-monster combat.

Definition in file pet.c.

#include "crogue.h"

Go to the source code of this file.

Functions

void monst_swing_monst (int attacker, int target, int trigger)
void monst_attack_monst (int attacknum, int attacker, int target)
void pet_move (int pet)
ushort monst_battle_pet (ushort monst)


Function Documentation

void monst_attack_monst int  attacknum,
int  attacker,
int  target
 

Definition at line 95 of file pet.c.

References call_attackfunc(), MDESC, monst_anger(), and rrandom().

Referenced by monst_swing_monst().

ushort monst_battle_pet ushort  monst  ) 
 

Definition at line 113 of file pet.c.

References world::m, monst_is_pet(), monst_swing_monst(), monstbytile(), MTRIGGER_NORMAL, ushort, w, monster::x, and monster::y.

Referenced by monstmove().

void monst_swing_monst int  attacker,
int  target,
int  trigger
 

Definition at line 64 of file pet.c.

References isNull, world::m, MATTACK, MDESC, message(), monst_attack_monst(), monst_hit_monst(), monstname(), player_can_see(), monster::type, and w.

Referenced by monst_battle_pet(), monstmoveto(), and pet_move().

void pet_move int  pet  ) 
 

Definition at line 29 of file pet.c.

References distancesquare, world::m, monst_is_peaceful(), monst_swing_monst(), monstbytile(), monstmoverandomly(), monstmovetowardsplayer(), MTRIGGER_NORMAL, world::plr, w, player::x, monster::x, player::y, and monster::y.

Referenced by monstmove().


Generated on Thu May 20 13:12:13 2004 for CalcRogue by doxygen 1.3.6