#------------------------------------------------------------------------------+
# Villian Class
#
# Villians are characters very similar like players. The main difference is
# that they are controlled by the game.
#
#------------------------------------------------------------------------------+
import pygame, custom_classes

import BasicObjects
from custom_classes import Character


class Villian(custom_classes.Character.Character):

    name            = "zombie"  # Determines used image and behaviour(?)
    angle           = 0         # Angle of view
    viewing_range   = 10        # When does the villian react to the player? texture grid dimension
    position        = []        # Level position
    inventory       = []        # Available weapons
    equiped_weapon  = 0         # Currently used weapon

    # Constructor
    def __init__(self, name, level, position):
        pygame.sprite.Sprite.__init__(self)  # needed for subclasses of sprites
        self.baseimage  = level.all_images[ name ] # Load the right image
        self.image      = self.baseimage
        self.rect       = self.image.get_rect()
        self.position   = position
        # By default add a gun to the inventory
        self.inventory.append(BasicObjects.generateGun())
        self.hitpoints  = [100, 100]
        # self.angle      = 0

548b7995312997f028e6887a612e96757c4a6042
<mask token>


class Villian(custom_classes.Character.Character):
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>

<mask token>


class Villian(custom_classes.Character.Character):
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>

    def __init__(self, name, level, position):
        pygame.sprite.Sprite.__init__(self)
        self.baseimage = level.all_images[name]
        self.image = self.baseimage
        self.rect = self.image.get_rect()
        self.position = position
        self.inventory.append(BasicObjects.generateGun())
        self.hitpoints = [100, 100]

<mask token>


class Villian(custom_classes.Character.Character):
    name = 'zombie'
    angle = 0
    viewing_range = 10
    position = []
    inventory = []
    equiped_weapon = 0

    def __init__(self, name, level, position):
        pygame.sprite.Sprite.__init__(self)
        self.baseimage = level.all_images[name]
        self.image = self.baseimage
        self.rect = self.image.get_rect()
        self.position = position
        self.inventory.append(BasicObjects.generateGun())
        self.hitpoints = [100, 100]

import pygame, custom_classes
import BasicObjects
from custom_classes import Character


class Villian(custom_classes.Character.Character):
    name = 'zombie'
    angle = 0
    viewing_range = 10
    position = []
    inventory = []
    equiped_weapon = 0

    def __init__(self, name, level, position):
        pygame.sprite.Sprite.__init__(self)
        self.baseimage = level.all_images[name]
        self.image = self.baseimage
        self.rect = self.image.get_rect()
        self.position = position
        self.inventory.append(BasicObjects.generateGun())
        self.hitpoints = [100, 100]

#------------------------------------------------------------------------------+
# Villian Class
#
# Villians are characters very similar like players. The main difference is
# that they are controlled by the game.
#
#------------------------------------------------------------------------------+
import pygame, custom_classes

import BasicObjects
from custom_classes import Character


class Villian(custom_classes.Character.Character):

    name            = "zombie"  # Determines used image and behaviour(?)
    angle           = 0         # Angle of view
    viewing_range   = 10        # When does the villian react to the player? texture grid dimension
    position        = []        # Level position
    inventory       = []        # Available weapons
    equiped_weapon  = 0         # Currently used weapon

    # Constructor
    def __init__(self, name, level, position):
        pygame.sprite.Sprite.__init__(self)  # needed for subclasses of sprites
        self.baseimage  = level.all_images[ name ] # Load the right image
        self.image      = self.baseimage
        self.rect       = self.image.get_rect()
        self.position   = position
        # By default add a gun to the inventory
        self.inventory.append(BasicObjects.generateGun())
        self.hitpoints  = [100, 100]
        # self.angle      = 0
