# -*- coding: utf-8 -*-
"""
@author: Kotarou
"""

from entity import Component
from components.HealthComponent import Health

class MouseClickComponent(Component):

    def __init__(self, string="I can be clicked on!"):
        super().__init__()
        self.response = string

    def onClick(self, e, x, y):
        print(self.response)
        for e, health in e.eman.pairsForType(Health):
            if health.alive:
                health.hp = health.hp - 1;
                print(health.hp)

8e057900dcd6a9ac66d0dc735142f1c6b18e4505
<mask token>


class MouseClickComponent(Component):
    <mask token>
    <mask token>

<mask token>


class MouseClickComponent(Component):
    <mask token>

    def onClick(self, e, x, y):
        print(self.response)
        for e, health in e.eman.pairsForType(Health):
            if health.alive:
                health.hp = health.hp - 1
                print(health.hp)

<mask token>


class MouseClickComponent(Component):

    def __init__(self, string='I can be clicked on!'):
        super().__init__()
        self.response = string

    def onClick(self, e, x, y):
        print(self.response)
        for e, health in e.eman.pairsForType(Health):
            if health.alive:
                health.hp = health.hp - 1
                print(health.hp)

<mask token>
from entity import Component
from components.HealthComponent import Health


class MouseClickComponent(Component):

    def __init__(self, string='I can be clicked on!'):
        super().__init__()
        self.response = string

    def onClick(self, e, x, y):
        print(self.response)
        for e, health in e.eman.pairsForType(Health):
            if health.alive:
                health.hp = health.hp - 1
                print(health.hp)

# -*- coding: utf-8 -*-
"""
@author: Kotarou
"""

from entity import Component
from components.HealthComponent import Health

class MouseClickComponent(Component):

    def __init__(self, string="I can be clicked on!"):
        super().__init__()
        self.response = string

    def onClick(self, e, x, y):
        print(self.response)
        for e, health in e.eman.pairsForType(Health):
            if health.alive:
                health.hp = health.hp - 1;
                print(health.hp)
