View Single Post
Old 25.12.2005, 00:30   #11
filrip
Архивный участник
 
Join Date: May 2005
Posts: 99
Default

call_super

call (launch) the child part of the EventHandler

like :

Code:
class FirstOne : citizen
handler 0 // NO_DESIRE
         <Walk>
handler_end
class_end

class SecondOne : FirstOne
handler 0 // NO_DESIRE
         <Hum...Then Search a target>
         <if NoTarget then>
          call_super
handler_end
class_end
This is just an example, without clean AI code of course

So imagine you have a gremlin, with AI = SecondOne

When it do nothing... it search a target first (SecondOne class). if not found, it call the older handler, so if no target, ... it will walk (FirstOne class) because "SecondOne" AI inherit of "FirstOne" class

I hope im clean. if you dont understand, i will post a real example
filrip is offline