Ejemplo n.º 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);
 }
Ejemplo n.º 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);
 }
Ejemplo n.º 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);
 }
Ejemplo n.º 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);
 }
Ejemplo n.º 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);
 }
Ejemplo n.º 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);
     }
 }
Ejemplo n.º 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);
 }
Ejemplo n.º 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);
        }
Ejemplo n.º 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);
        }
Ejemplo n.º 10
0
 public Wall(int nHealth)
 {
     m_nHealth = nHealth;
     m_gimg    = Globals.GetGobImage(s_astrBitmaps[0], false);
 }
Ejemplo n.º 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);
 }
Ejemplo n.º 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);
 }
Ejemplo n.º 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);
 }
Ejemplo n.º 14
0
 public Scenery(SerializationInfo info, StreamingContext ctx)
     : base(info, ctx)
 {
     m_strName = info.GetString("Name");
     m_gimg = Globals.GetGobImage(m_strName, false);
 }
Ejemplo n.º 15
0
 public Wall(SerializationInfo info, StreamingContext ctx)
     : base(info, ctx)
 {
     m_nHealth = info.GetInt32("nHealth");
     m_gimg = Globals.GetGobImage(s_astrBitmaps[0], false);
 }
Ejemplo n.º 16
0
 public Scenery(String strName)
 {
     m_strName = strName;
     m_gimg = Globals.GetGobImage(strName, false);
 }
Ejemplo n.º 17
0
 public Wall(SerializationInfo info, StreamingContext ctx) : base(info, ctx)
 {
     m_nHealth = info.GetInt32("nHealth");
     m_gimg    = Globals.GetGobImage(s_astrBitmaps[0], false);
 }
Ejemplo n.º 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);
 }
Ejemplo n.º 19
0
 public Wall(int nHealth)
 {
     m_nHealth = nHealth;
     m_gimg = Globals.GetGobImage(s_astrBitmaps[0], false);
 }
Ejemplo n.º 20
0
 public Scenery(SerializationInfo info, StreamingContext ctx) : base(info, ctx)
 {
     m_strName = info.GetString("Name");
     m_gimg    = Globals.GetGobImage(m_strName, false);
 }
Ejemplo n.º 21
0
 public Scenery(String strName)
 {
     m_strName = strName;
     m_gimg    = Globals.GetGobImage(strName, false);
 }