Ignore:
Timestamp:
2016-06-09 09:08:18 (4 years ago)
Author:
sieerinn
Message:

Aseita ja tähtääminen

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 2016/23/ohjaajat/Punasininen/Punasininen/Punasininen/WeaponCrate.cs

    r7203 r7211  
    99class WeaponCrate : PhysicsObject 
    1010{ 
    11  
    1211    public WeaponCrate(double leveys, double korkeus) 
    1312        : base(leveys, korkeus) 
     
    1514        Tag = "crate"; 
    1615    } 
     16} 
    1717 
    18     /* 
    19     public Weapon GiveWeapon() 
     18class ColorGun : Weapon 
     19{ 
     20    public Player Owner; 
     21 
     22    public Game MyGame; 
     23 
     24    protected override PhysicsObject CreateProjectile() 
    2025    { 
    21         this.Destroy(); 
    22     }*/ 
     26        Grenade test = new Grenade(10, TimeSpan.FromSeconds(1)); 
     27        test.Explosion.ShockwaveColor = Owner.Color; 
     28        return test; 
     29    } 
     30 
     31    public ColorGun(double leveys, double korkeus, Image image, Player owner, Game game) 
     32        : base(leveys, korkeus) 
     33    { 
     34        Image = image; 
     35        AttackSound = null; 
     36        FireRate = 1; 
     37        Power.DefaultValue = 15000; 
     38        Owner = owner; 
     39        MyGame = game; 
     40        
     41    } 
    2342} 
Note: See TracChangeset for help on using the changeset viewer.