Ejemplo n.º 1
0
        public int DoCollision(AtkCollisionProfile prof, ObjectGuid guid, PhysicsObj target)
        {
            var wo = WorldObject;

            if (wo == null)
            {
                return(-1);
            }

            var targetWO = target.WeenieObj.WorldObject;

            if (targetWO == null)
            {
                return(-1);
            }

            // no collision with self
            if (wo.Guid.Equals(targetWO.Guid))
            {
                return(-1);
            }

            /*Console.WriteLine("AtkCollisionProfile");
             * Console.WriteLine("Source: " + WorldObject.Name);
             * Console.WriteLine("Target: " + obj.WeenieObj.WorldObject.Name);*/

            wo.OnCollideObject(targetWO);

            return(0);
        }
Ejemplo n.º 2
0
        public int DoCollision(AtkCollisionProfile prof, ObjectGuid guid, PhysicsObj obj)
        {
            if (WorldObject != null)
            {
                obj.WeenieObj.WorldObject.HandleActionOnCollide(guid);
            }

            return(0);
        }
Ejemplo n.º 3
0
        public int DoCollision(AtkCollisionProfile prof, ObjectGuid guid, PhysicsObj target)
        {
            // no collision with self
            if (WorldObject.Guid.Equals(target.WeenieObj.WorldObject.Guid))
            {
                return(-1);
            }

            /*Console.WriteLine("AtkCollisionProfile");
             * Console.WriteLine("Source: " + WorldObject.Name);
             * Console.WriteLine("Target: " + obj.WeenieObj.WorldObject.Name);*/

            //if (WorldObject != null)
            //WorldObject.OnCollideObject(target.WeenieObj.WorldObject);

            return(0);
        }
Ejemplo n.º 4
0
 public int DoCollision(AtkCollisionProfile prof)
 {
     return 0;
 }
Ejemplo n.º 5
0
 public void DoCollision(AtkCollisionProfile prof)
 {
 }