Example #1
0
        public BigChar getBigChar(char charname)
        {
            BigChar bigChar = (BigChar)pool["" + charname];

            if (bigChar == null)
            {
                bigChar = new BigChar(charname);
                pool.Add("" + charname, bigChar);
            }
            return(bigChar);
        }
Example #2
0
        public BigChar GetBigChar(char charName)
        {
            BigChar bc    = null;
            bool    exist = map.ContainsKey("" + charName);

            if (!exist)
            {
                bc = new BigChar(charName);
                map.Add("" + charName, bc);
                return(bc);
            }
            return(map["" + charName]);
        }
        public BigChar getBigChar(char charname)
        {
            bool bl = pool.ContainsKey("" + charname);

            if (bl == false)
            {
                BigChar bc = new BigChar(charname);
                pool.Add("" + charname, bc);
                return(bc);
            }
            else
            {
                BigChar bc = pool["" + charname];
                return(bc);
            }
        }