Matt

Matt

  • NA
  • 3
  • 1.6k

Weapon Array for First Person Shooter

Jul 9 2011 11:00 PM
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] = ;

Answers (5)