public override bool Equals(Object obj) { bool ret = false; if (this == obj) { ret = true; } else { if (obj != null && typeof(ClsPunto).IsInstanceOfType(obj)) { ClsPunto punto = (ClsPunto)obj; if (this.X == punto.X && this.Y == punto.Y) { ret = true; } } } return(ret); }
public ClsAlien() { _srcImage = "/Assets/canina.gif"; _position = new ClsPunto(7, 7); }