source: 2016/23/ohjaajat/Punasininen/Punasininen/Punasininen/WeaponCrate.cs @ 7196

Revision 7196, 580 bytes checked in by sieerinn, 3 years ago (diff)

Uusi luokka WeaponCrate? lisätty

Line 
1using System;
2using System.Collections.Generic;
3using Jypeli;
4using Jypeli.Assets;
5using Jypeli.Controls;
6using Jypeli.Effects;
7using Jypeli.Widgets;
8
9class WeaponCrate : PhysicsObject
10{
11    Weapon WeaponInside;
12
13    public WeaponCrate(double leveys, double korkeus, Weapon weaponInside, Image pic, Color color)
14        : base(leveys, korkeus)
15    {
16        this.WeaponInside = weaponInside;
17        this.Color = color;
18        this.Image = pic;
19    }
20
21    public Weapon GiveWeapon()
22    {
23        this.Destroy();
24        return WeaponInside;
25    }
26}
Note: See TracBrowser for help on using the repository browser.