예제 #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);
 }