//----------------------------------------------------------------------------- // Constructors //----------------------------------------------------------------------------- public Entity() { roomControl = null; isAlive = false; isInRoom = false; isInitialized = false; position = Vector2F.Zero; zPosition = 0.0f; physics = new PhysicsComponent(this); graphics = new GraphicsComponent(this); originOffset = Point2I.Zero; centerOffset = Point2I.Zero; actionAlignDistance = 5; }
private Entity transformedEntity; // The entity this entity has transformed into (bomb -> explosion) #endregion Fields #region Constructors //----------------------------------------------------------------------------- // Constructors //----------------------------------------------------------------------------- public Entity() { entityIndex = -1; roomControl = null; isAlive = false; isInRoom = false; isInitialized = false; transformedEntity = null; soundBounce = null; position = Vector2F.Zero; zPosition = 0.0f; previousPosition = Vector2F.Zero; previousZPosition = 0.0f; physics = new PhysicsComponent(this); graphics = new GraphicsComponent(this); centerOffset = Point2I.Zero; actionAlignDistance = 5; }
//----------------------------------------------------------------------------- // Constructors //----------------------------------------------------------------------------- public Entity() { entityIndex = -1; roomControl = null; isAlive = false; isInRoom = false; isInitialized = false; transformedEntity = null; soundBounce = null; position = Vector2F.Zero; zPosition = 0.0f; previousPosition = Vector2F.Zero; previousZPosition = 0.0f; physics = new PhysicsComponent(this); graphics = new GraphicsComponent(this); centerOffset = Point2I.Zero; actionAlignDistance = 5; }