Пример #1
0
 public Wall(int nHealth, int tx, int ty)
 {
     m_nHealth = nHealth;
     m_tx      = tx;
     m_ty      = ty;
     m_gimg    = Globals.GetGobImage(s_astrBitmaps[0], false);
 }
Пример #2
0
 public Scenery(String strName, int tx, int ty)
 {
     m_strName = strName;
     m_tx = tx;
     m_ty = ty;
     m_gimg = Globals.GetGobImage(strName, false);
 }
Пример #3
0
 public Scenery(String strName, int tx, int ty)
 {
     m_strName = strName;
     m_tx      = tx;
     m_ty      = ty;
     m_gimg    = Globals.GetGobImage(strName, false);
 }
Пример #4
0
 public Wall(int nHealth, int tx, int ty)
 {
     m_nHealth = nHealth;
     m_tx = tx;
     m_ty = ty;
     m_gimg = Globals.GetGobImage(s_astrBitmaps[0], false);
 }
Пример #5
0
 void Init(int nGx, int tx, int ty)
 {
     m_nGx  = nGx;
     m_tx   = tx;
     m_ty   = ty;
     m_gimg = Globals.GetGobImage(s_astrBitmaps[m_nGx], true);
 }
Пример #6
0
 protected virtual void Init()
 {
     m_gimg = Globals.GetGobImage(GetType().Name, true);
     if (m_gimg == null)
     {
         throw new Exception("Cannot find image for gob " + GetType().Name);
     }
 }
Пример #7
0
 public Scenery(string strName, string strValue, int txOrigin, int tyOrigin)
 {
     Regex re = new Regex(@"^(?<gt>\d+),(?<name>\w+).tbm,(?<tx>\d+),(?<ty>\d+)$");
     Match m = re.Match(strValue);
     m_strName = m.Groups["name"].Value;
     m_tx = int.Parse(m.Groups["tx"].Value) + txOrigin;
     m_ty = int.Parse(m.Groups["ty"].Value) + tyOrigin;
     m_gimg = Globals.GetGobImage(m_strName, false);
 }
Пример #8
0
        public Scenery(string strName, string strValue, int txOrigin, int tyOrigin)
        {
            Regex re = new Regex(@"^(?<gt>\d+),(?<name>\w+).tbm,(?<tx>\d+),(?<ty>\d+)$");
            Match m  = re.Match(strValue);

            m_strName = m.Groups["name"].Value;
            m_tx      = int.Parse(m.Groups["tx"].Value) + txOrigin;
            m_ty      = int.Parse(m.Groups["ty"].Value) + tyOrigin;
            m_gimg    = Globals.GetGobImage(m_strName, false);
        }
Пример #9
0
        public static GobImage GetGobImage(String strName, bool fTight)
        {
            // See if it already exists
            foreach (GobImage gimg in m_alsGobImages)
            {
                if (strName == gimg.Name)
                {
                    return(gimg);
                }
            }

            // See if it can be loaded
            GobImage gimgT = GobImage.Load(strName, fTight);

            if (gimgT != null)
            {
                m_alsGobImages.Add(gimgT);
            }
            return(gimgT);
        }
Пример #10
0
 public Wall(int nHealth)
 {
     m_nHealth = nHealth;
     m_gimg    = Globals.GetGobImage(s_astrBitmaps[0], false);
 }
Пример #11
0
 public Galaxite(SerializationInfo info, StreamingContext ctx) : base(info, ctx)
 {
     m_nGx  = info.GetInt32("nGx");
     m_gimg = Globals.GetGobImage(s_astrBitmaps[m_nGx], true);
 }
Пример #12
0
 public Galaxite(SerializationInfo info, StreamingContext ctx)
     : base(info, ctx)
 {
     m_nGx = info.GetInt32("nGx");
     m_gimg = Globals.GetGobImage(s_astrBitmaps[m_nGx], true);
 }
Пример #13
0
 void Init(int nGx, int tx, int ty)
 {
     m_nGx = nGx;
     m_tx = tx;
     m_ty = ty;
     m_gimg = Globals.GetGobImage(s_astrBitmaps[m_nGx], true);
 }
Пример #14
0
 public Scenery(SerializationInfo info, StreamingContext ctx)
     : base(info, ctx)
 {
     m_strName = info.GetString("Name");
     m_gimg = Globals.GetGobImage(m_strName, false);
 }
Пример #15
0
 public Wall(SerializationInfo info, StreamingContext ctx)
     : base(info, ctx)
 {
     m_nHealth = info.GetInt32("nHealth");
     m_gimg = Globals.GetGobImage(s_astrBitmaps[0], false);
 }
Пример #16
0
 public Scenery(String strName)
 {
     m_strName = strName;
     m_gimg = Globals.GetGobImage(strName, false);
 }
Пример #17
0
 public Wall(SerializationInfo info, StreamingContext ctx) : base(info, ctx)
 {
     m_nHealth = info.GetInt32("nHealth");
     m_gimg    = Globals.GetGobImage(s_astrBitmaps[0], false);
 }
Пример #18
0
 protected virtual void Init()
 {
     m_gimg = Globals.GetGobImage(GetType().Name, true);
     if (m_gimg == null)
         throw new Exception("Cannot find image for gob " + GetType().Name);
 }
Пример #19
0
 public Wall(int nHealth)
 {
     m_nHealth = nHealth;
     m_gimg = Globals.GetGobImage(s_astrBitmaps[0], false);
 }
Пример #20
0
 public Scenery(SerializationInfo info, StreamingContext ctx) : base(info, ctx)
 {
     m_strName = info.GetString("Name");
     m_gimg    = Globals.GetGobImage(m_strName, false);
 }
Пример #21
0
 public Scenery(String strName)
 {
     m_strName = strName;
     m_gimg    = Globals.GetGobImage(strName, false);
 }