Changeset 2341


Ignore:
Timestamp:
2011-06-30 10:52:54 (8 years ago)
Author:
teeevasa
Message:
 
Location:
2011/26/JaakkoL/Rogue Agent 2372/Rogue Agent 2372/Rogue Agent 2372
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • 2011/26/JaakkoL/Rogue Agent 2372/Rogue Agent 2372/Rogue Agent 2372/Player.cs

    r2340 r2341  
    3232        this.Weapon = pistol; 
    3333 
    34         // pistol.ProjectileCollision += bulletReachedTarget; 
     34        pistol.ProjectileCollision += bulletReachedTarget; 
    3535        } 
    3636 
     
    5555    } 
    5656 
    57     void bulletReachedTarget(Projectile bullet, PhysicsObject target) 
     57    void bulletReachedTarget(PhysicsObject bullet, PhysicsObject target) 
    5858    {  
    5959     
  • 2011/26/JaakkoL/Rogue Agent 2372/Rogue Agent 2372/Rogue Agent 2372/Weapons.cs

    r2338 r2341  
    88public class Pistol : Weapon 
    99{ 
    10     public CollisionHandler BulletCollision 
    11     { 
    12         get { return ProjectileCollision; } 
    13         set { ProjectileCollision = value; } 
    14     } 
    15  
    1610    public Pistol(double width, double height) 
    1711        : base(width, height) 
Note: See TracChangeset for help on using the changeset viewer.