[CF-Devel] gdb tracing of attack_mode bug:

Jan Echternach echter at informatik.uni-rostock.de
Mon Nov 27 05:14:17 CST 2000


On Sun, Nov 26, 2000 at 02:58:01PM -0800, Mark Wedel wrote:
>
     
      Jan Echternach wrote:
     
     >
     
      > missing was_destroyed() checks.  Maybe an "enemy_count" should be added
     
     >
     
      > to the object structure.  Monsters are casting spells and doing a lot
     
     
>
     
       I wonder if a more general 'target_count' or 'other_count' might be more useful
     
     >
     
      for cases where we also want to track the count of something other than just
     
     >
     
      enemies.
     
     
The count itself doesn't make much sense without a corresponding member
of type 'object *'.  You would have to use find_object() every time.
Naming it 'enemy_count' also makes it obvious that you can't use
'enemy' without restrictions while 'enemy_count' is used for something
different.

-- 
Jan

    
    


More information about the crossfire mailing list