public bool AddSentence(ST_CARD[] astCard, int nCount, EN_SENTENCE_TYPE e) { if (astCard == null || nCount <= 0 || nCount > astCard.Length || e == EN_SENTENCE_TYPE.EN_ST_INVALID) { return(false); } for (int i = 0; i < nCount; i++) { m_astCard[i] = astCard[i]; } m_eType = e; m_nCount = nCount; return(true); }
public CardSentence() { m_nCount = 0; m_eType = EN_SENTENCE_TYPE.EN_ST_INVALID; }