Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
 public ClsAlien()
 {
     _srcImage = "/Assets/canina.gif";
     _position = new ClsPunto(7, 7);
 }