Exemplo n.º 1
0
 internal void Draw()
 {
     foreach (Entity entity in _model)
     {
         entity.world_position = entity.position + _position;
         Program.c.Print(entity);
     }
     boundingBox = Collision.BoundingBox.UpdateBoundingBox(_model);
     boundingBox.FillCorners();
 }
Exemplo n.º 2
0
 internal void EnableCollision(bool mode)
 {
     if (mode == true)
     {
         this.boundingBox = Collision.BoundingBox.UpdateBoundingBox(this._model);
     }
     else
     {
         this.boundingBox = null;
     }
 }
Exemplo n.º 3
0
 internal Object(List <Entity> model, Vector2 position, bool static_mode)
 {
     _model      = model;
     eraseble    = true;
     _position   = position;
     is_static   = static_mode;
     boundingBox = Collision.BoundingBox.UpdateBoundingBox(model);
     Program.objects.Add(this);
     id = Program.objects.LastIndexOf(this);
     Program.objects[id].id = id;
     EraseAction            = new TimeAction();
     Draw();
 }