Would someone please review my Array for a weapon? Is this the proper construction of an array? If not please correct me..
//Weapon Array
// WeaponName
string[] WeaponName;
WeaponName = new string["M1911"]
// WeaponDescription
string[] WeaponDescription;
WeaponDescription = new string["A moderately powerful handgun."]
// WeaponSubClass
string[] WeaponSubClass;
WeaponSubClass = new string["Sidearm"]
// WeaponROF
int[] WeaponROF;
WeaponROF = new int[1];
WeaponROF[0] = 1;
// WeaponAccuracy
int[] WeaponAccuracy;
WeaponAccuracy = new int[1];
WeaponAccuracy[0] = 80;
// WeaponWeight
int[] WeaponWeight;
WeaponWeight = new int[1];
WeaponWeight[0] = 1105;
// BarrelLength
int[] BarrelLength;
BarrelLength = new int[1];
BarrelLength[0] = 127
// CurrentClipSize
int[] CurrentClipSize;
CurrentClipSize = new int[1];
CurrentClipSize[0] = 7;
// MaxClipSize
int[] ClipSize;
ClipSize = new int[1];
ClipSize[0] = 7;
// MaxAmmo
int[] MaxAmmo;
MaxAmmo = new int[1];
MaxAmmo[0] = 21;
// MaxClips
int[] MaxClips;
MaxClips = new int[1];
MaxClips[0] = 2;
// ReloadTime
int[] ClipSize;
ClipSize = new int[1];
ClipSize[0] = ;
Loading
VulpesPosted Jul 11, 2011, 9:24 AM
Suthish NairPosted Jul 11, 2011, 2:05 AM
Why can't we use a Collection like this?
"List
or any other ways?
Edit: I hate this editor...
VulpesPosted Jul 10, 2011, 7:02 PM
MattPosted Jul 10, 2011, 5:19 PM
public class WeaponClass
VulpesPosted Jul 10, 2011, 3:53 AM