예제 #1
0
 public CCBGameTemplate(string name, CCBGame gameFrom)
 {
     m_name         = name;
     m_propertyList = new CharacterPropertyTemplateList();
     m_bags         = new CCBBags();
     Rebase(gameFrom);
 }
예제 #2
0
 public CCBGameTemplate(CCBGame gameFrom)
 {
     m_name         = gameFrom.Name + " Template";
     m_propertyList = new CharacterPropertyTemplateList();
     m_bags         = new CCBBags();
     Rebase(gameFrom);
 }
예제 #3
0
 public CCBCharacter()
 {
     m_id           = m_nextId++;
     m_name         = System.String.Format("NewCharacter{0}", m_id);
     m_propertyList = new CharacterPropertyList();
     m_items        = new CCBLockedBag("Items");
     m_bags         = new CCBBags();
 }
예제 #4
0
 public CCBGame(string name)
 {
     m_name                 = name;
     m_characters           = new CCBCharacterList();
     m_groupItems           = new CCBBag(m_kGroupItemLabel);
     m_groupBags            = new CCBBags();
     m_propertyTemplateList = new CharacterPropertyTemplateList();
 }
예제 #5
0
 public CCBCharacter(string name)
 {
     m_id           = m_nextId++;
     m_name         = name;
     m_propertyList = new CharacterPropertyList();
     m_items        = new CCBLockedBag("Items");
     m_bags         = new CCBBags();
     m_image        = null;
 }
예제 #6
0
 public CCBBag AddBag(CCBBag bag)
 {
     if (null == m_bags)
     {
         m_bags = new CCBBags();
     }
     m_bags.Add(bag);
     return(bag);
 }
예제 #7
0
        public CCBBag AddBag(string name)
        {
            CCBBag newBag = new CCBBag(name);

            if (null == m_bags)
            {
                m_bags = new CCBBags();
            }
            m_bags.Add(newBag);
            return(newBag);
        }
예제 #8
0
 public CCBGame(string name, CCBGameTemplate templateFrom)
 {
     m_name                 = name;
     m_characters           = new CCBCharacterList();
     m_groupItems           = new CCBBag(m_kGroupItemLabel);
     m_groupBags            = new CCBBags();
     m_propertyTemplateList = new CharacterPropertyTemplateList();
     foreach (CCBCharacterPropertyTemplate templateProperty in templateFrom.PropertyTemplateList)
     {
         m_propertyTemplateList.Add(new CCBCharacterPropertyTemplate(templateProperty));
     }
     foreach (CCBBag bag in templateFrom.Bags)
     {
         m_groupBags.Add(new CCBBag(bag));
     }
 }
예제 #9
0
 public CCBGameTemplate(string name)
 {
     m_name         = name;
     m_propertyList = new CharacterPropertyTemplateList();
     m_bags         = new CCBBags();
 }
예제 #10
0
 public CCBGameTemplate()
 {
     m_name         = "";
     m_propertyList = new CharacterPropertyTemplateList();
     m_bags         = new CCBBags();
 }