add abstract logic of entity

This commit is contained in:
Lev 2024-08-15 01:47:12 +03:00
parent 2b52b10a72
commit 1f54391527
8 changed files with 35 additions and 18 deletions

View file

@ -1,7 +1,6 @@
using System; using System;
namespace ZoFo; namespace ZoFo.GameCore.GameObjects;
public class Bullet : Projectile public class Bullet : Projectile
{ {

View file

@ -1,7 +1,6 @@
using System; using System;
namespace ZoFo; namespace ZoFo.GameCore.GameObjects;
public class Collectable : Entity public class Collectable : Entity
{ {

View file

@ -1,8 +1,11 @@
using System; using System;
using System.Collections.Generic;
using System.Net.Mime;
using System.Reflection;
using Microsoft.Xna.Framework.Content;
namespace ZoFo; namespace ZoFo.GameCore.GameObjects;
public class Enemy : LivingEntity public class Enemy : LivingEntity
{ {
} }

View file

@ -1,8 +1,28 @@
using System; using System;
using ZoFo.GameCore.GameObjects;
namespace ZoFo; namespace ZoFo.GameCore.GameObjects;
public class Entity : GameObject
public class Entity
{ {
public int Id{ get; set; }
//public CollisionComponent collisionComponents{ get; set; }
//public AnimationComponent animationComponent{ get; set; }
// в апдейте может заявляет изменения позиции
public void UpdateLogic()
{
}
// Методы для клиента
public void UpdateAnimation()
{
}
public void Draw(ContentManager manager)
{
}
} }

View file

@ -1,7 +1,6 @@
using System; using System;
namespace ZoFo; namespace ZoFo.GameCore.GameObjects;
public class LivingEntity : Entity public class LivingEntity : Entity
{ {

View file

@ -1,7 +1,6 @@
using System; using System;
namespace ZoFo; namespace ZoFo.GameCore.GameObjects;
public class Player : LivingEntity public class Player : LivingEntity
{ {

View file

@ -1,7 +1,6 @@
using System; using System;
namespace ZoFo; namespace ZoFo.GameCore.GameObjects;
public class Projectile : LivingEntity public class Projectile : LivingEntity
{ {

View file

@ -1,7 +1,6 @@
using System; using System;
namespace ZoFo; namespace ZoFo.GameCore.GameObjects;
public class Rock : Projectile public class Rock : Projectile
{ {