コード例 #1
0
ファイル: Ship.cs プロジェクト: vlangman/WideWorld
 public Weapon(WEAPONS_TYPE type, EFFECT_TYPE effect)
 {
     if (type == WEAPONS_TYPE.CANNON)
     {
         _damage   = 10.0f;
         _cooldown = 2;
     }
     if (type == WEAPONS_TYPE.RAILGUN)
     {
         _damage   = 15f;
         _cooldown = 4;
     }
     _type   = type;
     _effect = effect;
 }
コード例 #2
0
 public Weapon(int p_iAttackPoints, WEAPONS_TYPE type)
 {
     m_iAttackPoints = p_iAttackPoints;
     myType          = type;
 }