Exemple #1
0
 /// <summary>
 /// basic ctor, creates a new card
 /// </summary>
 /// <param name="id"></param>
 /// <param name="name"></param>
 /// <param name="type"></param>
 /// <param name="str"></param>
 /// <param name="def"></param>
 /// <param name="race"></param>
 /// <param name="eleType"></param>
 /// <param name="eleLv"></param>
 /// <param name="cost"></param>
 public Card(int id, string name, ECardType type, short str, short def, ECardRace race, ECardElementType eleType, int eleLv, short cost)
 {
     ID       = id;
     Name     = name;
     Type     = type;
     Strength = StrengthCurrent = str;
     Defence  = DefenceCurrent = def;
     Race     = race;
     Element  = new CardElement(eleType, eleLv);
     Cost     = cost;
 }
Exemple #2
0
		/// <summary>
		/// basic ctor, creates a new card
		/// </summary>
		/// <param name="id"></param>
		/// <param name="name"></param>
		/// <param name="type"></param>
		/// <param name="str"></param>
		/// <param name="def"></param>
		/// <param name="race"></param>
		/// <param name="eleType"></param>
		/// <param name="eleLv"></param>
		/// <param name="cost"></param>
		public Card( int id, string name, ECardType type, short str, short def, ECardRace race, ECardElementType eleType, int eleLv, short cost ) {
			ID = id;
			Name = name;
			Type = type;
			Strength = StrengthCurrent = str;
			Defence = DefenceCurrent = def;
			Race = race;
			Element = new CardElement( eleType, eleLv );
			Cost = cost;
		}