Ejemplo n.º 1
0
        }     //构造函数

        public lc_Object(lc_Object srcTag)
        {
            this.obj_id   = srcTag.obj_id;
            this.m_name   = srcTag.m_name;
            this.obj_type = srcTag.obj_type;
            this.m_desc   = srcTag.m_desc;
        }//拷贝构造函数
Ejemplo n.º 2
0
 public lc_Object(string name, GAMEOBJTYPE obj_type)
 {
     this.obj_id   = idCount++;
     this.m_name   = name;
     this.obj_type = obj_type;
 }     //构造函数
Ejemplo n.º 3
0
 public lc_People(string name, int age, int life, GAMEOBJTYPE obj_type) : base(name, obj_type)
 {
     this.m_age    = age;
     this.m_life   = life;
     this.m_islife = true;
 }//构造函数