All pastes #1646485 Raw Edit

robertj

public text v1 · immutable
#1646485 ·published 2009-10-28 13:59 UTC
rendered paste body
from game.gamesrc.parents.rhns.combathandler import combatlinkfrom src.objects.models import Objectclass CombatantObject:    def get_combatant(self):        return combatlink(self.scripted_obj)    def get_current(self):        return Object.objects.get(id=self.scripted_obj.id)    current = property(fget=get_current)    combatant = property(fget=get_combatant)    def emote(self, txt):        self.current.location.emit_to_contents("%s%s" % (self.current.name, txt))    def on_combatant_created(self):        pass    def on_combatant_destroyed(self):        pass     def debug(self, txt):        print ">>>>>", txt