C# Class Gruppe22.Backend.Enemy

The class used to generate computer controlled enemies in the game. The enemies are a type of actors like the player is.
Inheritance: Actor
Afficher le fichier Open project: propra13-orga/gruppe22 Class Usage Examples

Méthodes publiques

Méthode Description
AssignSkillsAndAbilities ( ) : void

Method to increase random skills and abilities while there are skill-/ability-points.

Enemy ( int health = -1, int armour = -1, int damage = -1, int maxHealth = -1, string name = "", Random r = null, int level = 1 ) : System

The constructor for an enemy. Calls the contructor for an actor and sets enemy-specific properties. Chooses a random graphic for the enemy suitable to the level the enemy is in. For the params see actor.

Method Details

AssignSkillsAndAbilities() public méthode

Method to increase random skills and abilities while there are skill-/ability-points.
public AssignSkillsAndAbilities ( ) : void
Résultat void

Enemy() public méthode

The constructor for an enemy. Calls the contructor for an actor and sets enemy-specific properties. Chooses a random graphic for the enemy suitable to the level the enemy is in. For the params see actor.
public Enemy ( int health = -1, int armour = -1, int damage = -1, int maxHealth = -1, string name = "", Random r = null, int level = 1 ) : System
health int
armour int
damage int
maxHealth int
name string
r System.Random
level int
Résultat System