commit 000
This commit is contained in:
parent
5013d77972
commit
925b03fd3a
14 changed files with 42 additions and 38 deletions
|
@ -13,11 +13,9 @@ namespace DangerousD.GameCore.GameObjects.LivingEntities
|
|||
public abstract class CoreEnemy : LivingEntity
|
||||
{
|
||||
protected int monster_health;
|
||||
protected float monster_speed = 2;
|
||||
protected int monster_speed;
|
||||
protected string name;
|
||||
protected bool isAlive = true;
|
||||
protected bool isAttack = false;
|
||||
protected bool isGoRight;
|
||||
protected int leftBoarder = 0;
|
||||
protected int rightBoarder = 700;
|
||||
|
||||
|
@ -33,7 +31,6 @@ namespace DangerousD.GameCore.GameObjects.LivingEntities
|
|||
public abstract void Death();
|
||||
|
||||
public abstract void Attack();
|
||||
public abstract void Attack(GameTime gameTime);
|
||||
|
||||
public abstract void Move(GameTime gameTime);
|
||||
|
||||
|
@ -46,7 +43,5 @@ namespace DangerousD.GameCore.GameObjects.LivingEntities
|
|||
isAlive = false;
|
||||
}
|
||||
}
|
||||
|
||||
public abstract void Target();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -12,6 +12,9 @@ namespace DangerousD.GameCore.GameObjects.LivingEntities.Monsters
|
|||
{
|
||||
public class FlameSkull : CoreEnemy
|
||||
{
|
||||
private bool isGoRight;
|
||||
private bool isAttack;
|
||||
|
||||
public FlameSkull(Vector2 position) : base(position)
|
||||
{
|
||||
Width = 62;
|
||||
|
@ -71,14 +74,6 @@ namespace DangerousD.GameCore.GameObjects.LivingEntities.Monsters
|
|||
}
|
||||
}
|
||||
|
||||
public override void Attack(GameTime gameTime)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void Target()
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -12,6 +12,8 @@ namespace DangerousD.GameCore.GameObjects.LivingEntities.Monsters
|
|||
{
|
||||
internal class Frank : CoreEnemy
|
||||
{
|
||||
private bool isGoRight;
|
||||
|
||||
public Frank(Vector2 position) : base(position)
|
||||
{
|
||||
isGoRight = false;
|
||||
|
@ -70,12 +72,12 @@ namespace DangerousD.GameCore.GameObjects.LivingEntities.Monsters
|
|||
}
|
||||
}
|
||||
|
||||
public override void Attack(GameTime gameTime)
|
||||
public void Attack(GameTime gameTime)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void Target()
|
||||
public void Target()
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
|
|
@ -82,12 +82,12 @@ namespace DangerousD.GameCore.GameObjects.LivingEntities.Monsters
|
|||
}
|
||||
}
|
||||
|
||||
public override void Attack(GameTime gameTime)
|
||||
public void Attack(GameTime gameTime)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void Target()
|
||||
public void Target()
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
|
|
@ -10,6 +10,9 @@ namespace DangerousD.GameCore.GameObjects.LivingEntities.Monsters
|
|||
{
|
||||
public class Ghost : CoreEnemy
|
||||
{
|
||||
private bool isGoRight;
|
||||
private bool isAttack;
|
||||
|
||||
public Ghost(Vector2 position) : base(position)
|
||||
{
|
||||
isGoRight = true;
|
||||
|
@ -76,12 +79,12 @@ namespace DangerousD.GameCore.GameObjects.LivingEntities.Monsters
|
|||
}
|
||||
}
|
||||
|
||||
public override void Attack(GameTime gameTime)
|
||||
public void Attack(GameTime gameTime)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void Target()
|
||||
public void Target()
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
|
|
@ -81,7 +81,7 @@ namespace DangerousD.GameCore.GameObjects.LivingEntities.Monsters
|
|||
}
|
||||
}
|
||||
|
||||
public override void Attack(GameTime gameTime)
|
||||
public void Attack(GameTime gameTime)
|
||||
{
|
||||
|
||||
}
|
||||
|
@ -129,7 +129,7 @@ namespace DangerousD.GameCore.GameObjects.LivingEntities.Monsters
|
|||
Debug.WriteLine("Collision");
|
||||
}
|
||||
|
||||
public override void Target()
|
||||
public void Target()
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
|
|
@ -27,7 +27,7 @@ namespace DangerousD.GameCore.GameObjects.LivingEntities.Monsters
|
|||
|
||||
}
|
||||
|
||||
public override void Attack(GameTime gameTime)
|
||||
public void Attack(GameTime gameTime)
|
||||
{
|
||||
|
||||
}
|
||||
|
@ -42,7 +42,7 @@ namespace DangerousD.GameCore.GameObjects.LivingEntities.Monsters
|
|||
|
||||
}
|
||||
|
||||
public override void Target()
|
||||
public void Target()
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
|
|
@ -30,7 +30,7 @@ namespace DangerousD.GameCore.GameObjects.LivingEntities.Monsters
|
|||
|
||||
}
|
||||
|
||||
public override void Attack(GameTime gameTime)
|
||||
public void Attack(GameTime gameTime)
|
||||
{
|
||||
|
||||
}
|
||||
|
@ -61,7 +61,7 @@ namespace DangerousD.GameCore.GameObjects.LivingEntities.Monsters
|
|||
}
|
||||
}
|
||||
|
||||
public override void Target()
|
||||
public void Target()
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
|
|
@ -72,7 +72,7 @@ namespace DangerousD.GameCore.GameObjects.LivingEntities.Monsters
|
|||
|
||||
}
|
||||
|
||||
public override void Attack(GameTime gameTime)
|
||||
public void Attack(GameTime gameTime)
|
||||
{
|
||||
|
||||
}
|
||||
|
@ -113,7 +113,7 @@ namespace DangerousD.GameCore.GameObjects.LivingEntities.Monsters
|
|||
}
|
||||
}
|
||||
|
||||
public override void Target()
|
||||
public void Target()
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
|
|
@ -233,12 +233,12 @@ namespace DangerousD.GameCore.GameObjects.LivingEntities.Monsters
|
|||
base.Update(gameTime);
|
||||
}
|
||||
|
||||
public override void Target()
|
||||
public void Target()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void Attack(GameTime gameTime)
|
||||
public void Attack(GameTime gameTime)
|
||||
{
|
||||
|
||||
}
|
||||
|
|
|
@ -12,6 +12,9 @@ namespace DangerousD.GameCore.GameObjects.LivingEntities.Monsters
|
|||
{
|
||||
public class Spider : CoreEnemy
|
||||
{
|
||||
private bool isGoRight;
|
||||
private bool isAttack;
|
||||
|
||||
protected SpiderWeb web;
|
||||
protected float delay;
|
||||
protected int webLength;
|
||||
|
@ -57,7 +60,7 @@ namespace DangerousD.GameCore.GameObjects.LivingEntities.Monsters
|
|||
/// Атака паука РАБОЧАЯ
|
||||
/// </summary>
|
||||
/// <param name="gameTime"></param>
|
||||
public override void Attack(GameTime gameTime)
|
||||
public void Attack(GameTime gameTime)
|
||||
{ //48 72
|
||||
if (isDownUp)
|
||||
{
|
||||
|
@ -144,7 +147,7 @@ namespace DangerousD.GameCore.GameObjects.LivingEntities.Monsters
|
|||
}
|
||||
}
|
||||
|
||||
public override void Target()
|
||||
public void Target()
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
|
|
@ -28,7 +28,7 @@ namespace DangerousD.GameCore.GameObjects.LivingEntities.Monsters
|
|||
|
||||
}
|
||||
|
||||
public override void Attack(GameTime gameTime)
|
||||
public void Attack(GameTime gameTime)
|
||||
{
|
||||
|
||||
}
|
||||
|
@ -43,7 +43,7 @@ namespace DangerousD.GameCore.GameObjects.LivingEntities.Monsters
|
|||
|
||||
}
|
||||
|
||||
public override void Target()
|
||||
public void Target()
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
|
|
@ -12,6 +12,9 @@ namespace DangerousD.GameCore.GameObjects.LivingEntities.Monsters
|
|||
{
|
||||
public class Werewolf : CoreEnemy
|
||||
{
|
||||
private bool isGoRight;
|
||||
private bool isAttack;
|
||||
|
||||
public Werewolf(Vector2 position) : base(position)
|
||||
{
|
||||
name = "Wolf";
|
||||
|
@ -70,11 +73,11 @@ namespace DangerousD.GameCore.GameObjects.LivingEntities.Monsters
|
|||
}
|
||||
}
|
||||
|
||||
public override void Attack(GameTime gameTime)
|
||||
public void Attack(GameTime gameTime)
|
||||
{
|
||||
}
|
||||
|
||||
public override void Target()
|
||||
public void Target()
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
|
|
@ -13,6 +13,9 @@ namespace DangerousD.GameCore.GameObjects.LivingEntities.Monsters
|
|||
{
|
||||
public class Zombie : CoreEnemy
|
||||
{
|
||||
private bool isGoRight;
|
||||
private bool isAttack;
|
||||
|
||||
float leftBorder;
|
||||
float rightBorder;
|
||||
bool isAttaking = false;
|
||||
|
@ -118,7 +121,7 @@ namespace DangerousD.GameCore.GameObjects.LivingEntities.Monsters
|
|||
}
|
||||
base.OnCollision(gameObject);
|
||||
}
|
||||
public override void Target()
|
||||
public void Target()
|
||||
{
|
||||
if (AppManager.Instance.GameManager.physicsManager.CheckRectangle(new Rectangle((int)Pos.X - 50, (int)Pos.Y, Width + 100, Height), typeof(Player)).Count > 0)
|
||||
{
|
||||
|
@ -149,7 +152,7 @@ namespace DangerousD.GameCore.GameObjects.LivingEntities.Monsters
|
|||
}
|
||||
}
|
||||
|
||||
public override void Attack(GameTime gameTime)
|
||||
public void Attack(GameTime gameTime)
|
||||
{}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue