from Box2D import *
from Entity import *
import TypeEnums


class EnemyEntity(Entity):

    def __init__(self, id, health, dmg, dmgable, world, x, y, movePattern,
        atkPattern):
        super(EnemyEntity, self).__init__(id, health, dmg, dmgable, {
            TypeEnums.GR_STATE_DYING: 300}, {}, world, TypeEnums.TYPE_ENEMY)
        self.body = None
        self.MovePattern = movePattern
        self.AtkPattern = atkPattern
        self._initBody(x, y)

    def _initBody(self, x, y):
        self.body = self.world.CreateDynamicBody(position=(x, y), fixtures=
            b2FixtureDef(categoryBits=TypeEnums.CAT_ENEMY, maskBits=
            TypeEnums.CAT_PLAYER, isSensor=True, shape=b2CircleShape(radius
            =1), density=1))
        self.body.sleepingAllowed = False
        self.body.fixedRotation = True
        self.body.userData = self

    def move(self):
        self.MovePattern(self)

    def atk(self):
        return self.AtkPattern(self)

719440825d870e69de0ab6cccca87acd0745d1a0
<mask token>


class EnemyEntity(Entity):
    <mask token>
    <mask token>
    <mask token>
    <mask token>

<mask token>


class EnemyEntity(Entity):

    def __init__(self, id, health, dmg, dmgable, world, x, y, movePattern,
        atkPattern):
        super(EnemyEntity, self).__init__(id, health, dmg, dmgable, {
            TypeEnums.GR_STATE_DYING: 300}, {}, world, TypeEnums.TYPE_ENEMY)
        self.body = None
        self.MovePattern = movePattern
        self.AtkPattern = atkPattern
        self._initBody(x, y)

    def _initBody(self, x, y):
        self.body = self.world.CreateDynamicBody(position=(x, y), fixtures=
            b2FixtureDef(categoryBits=TypeEnums.CAT_ENEMY, maskBits=
            TypeEnums.CAT_PLAYER, isSensor=True, shape=b2CircleShape(radius
            =1), density=1))
        self.body.sleepingAllowed = False
        self.body.fixedRotation = True
        self.body.userData = self

    def move(self):
        self.MovePattern(self)
    <mask token>

<mask token>


class EnemyEntity(Entity):

    def __init__(self, id, health, dmg, dmgable, world, x, y, movePattern,
        atkPattern):
        super(EnemyEntity, self).__init__(id, health, dmg, dmgable, {
            TypeEnums.GR_STATE_DYING: 300}, {}, world, TypeEnums.TYPE_ENEMY)
        self.body = None
        self.MovePattern = movePattern
        self.AtkPattern = atkPattern
        self._initBody(x, y)

    def _initBody(self, x, y):
        self.body = self.world.CreateDynamicBody(position=(x, y), fixtures=
            b2FixtureDef(categoryBits=TypeEnums.CAT_ENEMY, maskBits=
            TypeEnums.CAT_PLAYER, isSensor=True, shape=b2CircleShape(radius
            =1), density=1))
        self.body.sleepingAllowed = False
        self.body.fixedRotation = True
        self.body.userData = self

    def move(self):
        self.MovePattern(self)

    def atk(self):
        return self.AtkPattern(self)

from Box2D import *
from Entity import *
import TypeEnums


class EnemyEntity(Entity):

    def __init__(self, id, health, dmg, dmgable, world, x, y, movePattern,
        atkPattern):
        super(EnemyEntity, self).__init__(id, health, dmg, dmgable, {
            TypeEnums.GR_STATE_DYING: 300}, {}, world, TypeEnums.TYPE_ENEMY)
        self.body = None
        self.MovePattern = movePattern
        self.AtkPattern = atkPattern
        self._initBody(x, y)

    def _initBody(self, x, y):
        self.body = self.world.CreateDynamicBody(position=(x, y), fixtures=
            b2FixtureDef(categoryBits=TypeEnums.CAT_ENEMY, maskBits=
            TypeEnums.CAT_PLAYER, isSensor=True, shape=b2CircleShape(radius
            =1), density=1))
        self.body.sleepingAllowed = False
        self.body.fixedRotation = True
        self.body.userData = self

    def move(self):
        self.MovePattern(self)

    def atk(self):
        return self.AtkPattern(self)
