|
using System;
using Engine3DVP;
namespace Engine3D
{
/// <summary>
/// Summary description for Enemy.
/// </summary>
internal class Enemy: Object3D, IEnemy
{
private bool mInWar;
private bool mIsDead;
public Enemy(int energy){this.mInWar = false;this.mIsDead = false;this.Energy = energy;}
//Creating and placing, giving a rotation value.
public Enemy(Poinx3D place, double rotX, double rotY, double paseX, double paseY, int energy)
{
this.mInWar = false;
this.mIsDead = false;
this.ObjPos = place;
this.SetRotX(rotX);
this.SetRotY(rotY);
this.PaseX = paseX;
this.PaseY = paseY;
this.Energy = energy;
}
//Enemy in war?
public bool InWar
{
set
{
this.mInWar = value;
}
get
{
return this.mInWar;
}
}
//Enemy dead??
public bool IsDead
{
set
{
this.mIsDead = value;
}
get
{
return this.mIsDead;
}
}
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
Professional programmer, degree in Informatics and Applied Systems Science.