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;
|
using System;
|
||||||
|
|
||||||
namespace ZoFo;
|
namespace ZoFo.GameCore.GameObjects;
|
||||||
|
|
||||||
public class Bullet : Projectile
|
public class Bullet : Projectile
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
using System;
|
using System;
|
||||||
|
|
||||||
namespace ZoFo;
|
namespace ZoFo.GameCore.GameObjects;
|
||||||
|
|
||||||
public class Collectable : Entity
|
public class Collectable : Entity
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
|
@ -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)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
using System;
|
using System;
|
||||||
|
|
||||||
namespace ZoFo;
|
namespace ZoFo.GameCore.GameObjects;
|
||||||
|
|
||||||
public class LivingEntity : Entity
|
public class LivingEntity : Entity
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
using System;
|
using System;
|
||||||
|
|
||||||
namespace ZoFo;
|
namespace ZoFo.GameCore.GameObjects;
|
||||||
|
|
||||||
public class Player : LivingEntity
|
public class Player : LivingEntity
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
using System;
|
using System;
|
||||||
|
|
||||||
namespace ZoFo;
|
namespace ZoFo.GameCore.GameObjects;
|
||||||
|
|
||||||
public class Projectile : LivingEntity
|
public class Projectile : LivingEntity
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
using System;
|
using System;
|
||||||
|
|
||||||
namespace ZoFo;
|
namespace ZoFo.GameCore.GameObjects;
|
||||||
|
|
||||||
public class Rock : Projectile
|
public class Rock : Projectile
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue