add abstract logic of entity
This commit is contained in:
parent
2b52b10a72
commit
1f54391527
8 changed files with 35 additions and 18 deletions
|
@ -1,7 +1,6 @@
|
|||
using System;
|
||||
|
||||
namespace ZoFo;
|
||||
|
||||
namespace ZoFo.GameCore.GameObjects;
|
||||
public class Bullet : Projectile
|
||||
{
|
||||
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
using System;
|
||||
|
||||
namespace ZoFo;
|
||||
|
||||
namespace ZoFo.GameCore.GameObjects;
|
||||
public class Collectable : Entity
|
||||
{
|
||||
|
||||
|
|
|
@ -1,8 +1,11 @@
|
|||
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
|
||||
{
|
||||
|
||||
}
|
||||
}
|
|
@ -1,8 +1,28 @@
|
|||
using System;
|
||||
using ZoFo.GameCore.GameObjects;
|
||||
|
||||
namespace ZoFo;
|
||||
|
||||
public class Entity
|
||||
namespace ZoFo.GameCore.GameObjects;
|
||||
public class Entity : GameObject
|
||||
{
|
||||
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)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
using System;
|
||||
|
||||
namespace ZoFo;
|
||||
|
||||
namespace ZoFo.GameCore.GameObjects;
|
||||
public class LivingEntity : Entity
|
||||
{
|
||||
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
using System;
|
||||
|
||||
namespace ZoFo;
|
||||
|
||||
namespace ZoFo.GameCore.GameObjects;
|
||||
public class Player : LivingEntity
|
||||
{
|
||||
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
using System;
|
||||
|
||||
namespace ZoFo;
|
||||
|
||||
namespace ZoFo.GameCore.GameObjects;
|
||||
public class Projectile : LivingEntity
|
||||
{
|
||||
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
using System;
|
||||
|
||||
namespace ZoFo;
|
||||
|
||||
namespace ZoFo.GameCore.GameObjects;
|
||||
public class Rock : Projectile
|
||||
{
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue