source: 2011/26/JaakkoL/Rogue Agent 2372/Rogue Agent 2372/Rogue Agent 2372/GenWeapon.cs @ 2268

Revision 2268, 987 bytes checked in by teeevasa, 8 years ago (diff)

Talletus.

Line 
1using System;
2using Jypeli;
3using Jypeli.Assets;
4using Jypeli.Controls;
5using Jypeli.Effects;
6using Jypeli.Widgets;
7using Weapons;
8
9public class GenWeapon
10{
11    Weapon weapon;
12
13    GenWeapon(string weaponName)
14    {
15   
16    }
17
18    private void loadWeapon(string weaponName)
19    { 
20       
21    }
22
23    private void changeWeapon(string weaponName)
24    { 
25   
26    }
27}
28
29struct Weapon
30{ 
31    int reloadTime;
32    int firingInterval;
33    string name;
34    Image weaponImage;
35    Image bulletImage;
36    SoundEffect sound;
37
38    Weapon(int _reloadTime, int _firingInterval, string weaponName,
39        string weaponImgPath, string bulletImgPath, string soundEffectPath)
40    {
41        reloadTime = _reloadTime;
42        firingInterval = _firingInterval;
43        name = weaponName;
44        weaponImage = Game.LoadImage(weaponImgPath);
45        bulletImage = Game.LoadImage(bulletImgPath);
46        sound = Game.LoadSoundEffect(soundEffectPath);
47    }
48}
Note: See TracBrowser for help on using the repository browser.