Tick method in a PoliceOfficer class
<p>My question deals with creating a tick procedure the original tick procedure where it makes a class called PoliceOfficer arrest everyone who is naked around him. </p>

<pre><code>def tick(self):
# next time step for all objects that tick               
  for t in self.__things:          
  obj = self.get_thing(t)            
  if has_method(obj, "tick"):                
    obj.tick()      
</code></pre>

<p>This the original tick method.</p>

<p>This is my <code>PoliceOfficer</code> class and the method known as <code>arrest</code>. The arrest method arrests someone based upon them not having any clothes on when in the area of the PoliceOfficer, and when there isn't anyone to arrest he just says something else.  </p>

<pre><code>class PoliceOfficer (Person):    
    def __init__(self, name, jail): 
        Person.__init__(self, name)
        self.set_restlessness(0.5)
        self.__jail = jail
    def arrest (self, Person):
      if self.location.name is Person.location.name:
          self.say (Person.name + "You're under arrest!")
          self.say ("You have the right to shut up and lay on the ground with your hands behind your back")
          Person.name(Place("jail")
      else:                
         return self.say (Person.name + "Ain't got nothing to do damnit") 
    def tick (self):
      if isinstance(t, Student):
      if Student.is_dressed = False:
          arrest.student       
      else:
        (Person)tick(): self.say("Shoot no one to arrest off to the 7 eleven")
</code></pre>

<p>Would this be partially correct on making my own tick method for PoliceOfficer? 
If not what else would I need to do or change to make it like the tick method described, except for making the PoliceOfficer arrest any student that isn't dressed?</p>
