public SolidBody(GameObject.BaseGameObject owner, Coord pos, Size size, short angle, bool isSemisolid, TextureId textureId, IGameObject _IgnoreCollide)
     : base(owner, pos, size, angle, textureId)
 {
     IsSemisolid     = isSemisolid;
     Owner.IsUpdated = true;
     IgnoreCollide   = _IgnoreCollide;
 }
Beispiel #2
0
 public TexturedBody(GameObject.BaseGameObject owner, Coord pos, Size size, short angle, TextureId textureId)
     : base(owner)
 {
     this.Pos        = pos;
     PrevPos         = new Coord(pos.x, pos.y);
     this.Size       = size;
     this.Angle      = angle;
     this.TextureId  = textureId;
     Owner.IsUpdated = true;
 }
 public CollideMessage(GameObject.BaseGameObject collideWith) : base(ComponentMessageType.Collide)
 {
     CollideWith = collideWith;
 }