Fixed gameObjects properties
Great Merge Done!
This commit is contained in:
parent
15e453116e
commit
a8492abe60
5 changed files with 25 additions and 12 deletions
|
@ -3,11 +3,15 @@ using System.Collections.Generic;
|
|||
using System.Text;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using ZoFo.GameCore.GameManagers.CollisionManager;
|
||||
using ZoFo.GameCore.ZoFo_graphics;
|
||||
|
||||
namespace ZoFo.GameCore.GameObjects.Entities
|
||||
{
|
||||
public abstract class Entity : GameObject
|
||||
{
|
||||
protected override GraphicsComponent graphicsComponent => null;
|
||||
public CollisionComponent collisionComponent { get; protected set; }
|
||||
public int Id { get; set; }
|
||||
public void CollisionComponent()
|
||||
{
|
||||
|
|
|
@ -2,12 +2,13 @@
|
|||
using Microsoft.Xna.Framework.Graphics;
|
||||
using System;
|
||||
using ZoFo.GameCore.GameObjects.Entities;
|
||||
using ZoFo.GameCore.ZoFo_graphics;
|
||||
|
||||
namespace ZoFo.GameCore.GameObjects.Entities.LivingEntities;
|
||||
public class LivingEntity : Entity
|
||||
{
|
||||
public Vector2 velocity;
|
||||
public Vector2 position;
|
||||
|
||||
|
||||
public void TextureLoad(SpriteBatch spriteBatch)
|
||||
{
|
||||
|
|
|
@ -0,0 +1,7 @@
|
|||
using System;
|
||||
|
||||
namespace ZoFo.GameCore.GameObjects.Entities.LivingEntities.Projectiles;
|
||||
public class Projectile : LivingEntity
|
||||
{
|
||||
|
||||
}
|
|
@ -1,6 +1,15 @@
|
|||
namespace ZoFo.GameCore.GameObjects;
|
||||
|
||||
using Microsoft.Xna.Framework;
|
||||
using ZoFo.GameCore.ZoFo_graphics;
|
||||
|
||||
public class GameObject
|
||||
namespace ZoFo.GameCore.GameObjects;
|
||||
|
||||
public abstract class GameObject
|
||||
{
|
||||
public Vector2 position;
|
||||
public Vector2 rotation;
|
||||
|
||||
protected abstract GraphicsComponent graphicsComponent { get; }
|
||||
public void Draw() { }
|
||||
|
||||
}
|
|
@ -1,8 +0,0 @@
|
|||
using System;
|
||||
using ZoFo.GameCore.GameObjects.Entities.LivingEntities;
|
||||
|
||||
namespace ZoFo.GameCore.GameObjects;
|
||||
public class Projectile : LivingEntity
|
||||
{
|
||||
|
||||
}
|
Loading…
Add table
Reference in a new issue