2019-11-02 17:27:54 -05:00
|
|
|
from otp.avatar import DistributedAvatar
|
2019-12-30 00:07:56 -06:00
|
|
|
from . import Char
|
2019-11-02 17:27:54 -05:00
|
|
|
|
|
|
|
class DistributedChar(DistributedAvatar.DistributedAvatar, Char.Char):
|
|
|
|
|
|
|
|
def __init__(self, cr):
|
|
|
|
try:
|
|
|
|
self.DistributedChar_initialized
|
|
|
|
except:
|
|
|
|
self.DistributedChar_initialized = 1
|
|
|
|
DistributedAvatar.DistributedAvatar.__init__(self, cr)
|
|
|
|
Char.Char.__init__(self)
|
|
|
|
|
|
|
|
def delete(self):
|
|
|
|
try:
|
|
|
|
self.DistributedChar_deleted
|
|
|
|
except:
|
|
|
|
self.DistributedChar_deleted = 1
|
|
|
|
Char.Char.delete(self)
|
|
|
|
DistributedAvatar.DistributedAvatar.delete(self)
|
|
|
|
|
|
|
|
def setDNAString(self, dnaString):
|
|
|
|
Char.Char.setDNAString(self, dnaString)
|
|
|
|
|
|
|
|
def setDNA(self, dna):
|
|
|
|
Char.Char.setDNA(self, dna)
|
|
|
|
|
|
|
|
def playDialogue(self, *args):
|
|
|
|
Char.Char.playDialogue(self, *args)
|
|
|
|
|
|
|
|
def setHp(self, hp):
|
|
|
|
self.hp = hp
|