public Bullet(Canvas canvas, gObject owner, int level) : base(canvas, 16, 16) { this.m_canvas = canvas; this.m_owner = owner; this.m_level = level; if (owner != null) { this.m_face = owner.Face; int cursorX = 0; switch (owner.Face) { case FaceDirection.Up: { this.m_x = (owner.X + (owner.Width / 2)) - 8; this.m_y = owner.Y - 4; cursorX = 112; } break; case FaceDirection.Down: { this.m_x = (owner.X + (owner.Width / 2)) - 8; this.m_y = (owner.Y + owner.Height) - 4; cursorX = 128; } break; case FaceDirection.Left: { this.m_x = owner.X - 4; this.m_y = (owner.Y + (owner.Height / 2)) - 8; cursorX = 144; } break; case FaceDirection.Right: { this.m_x = (owner.X + owner.Width) - 4; this.m_y = (owner.Y + (owner.Height / 2)) - 8; cursorX = 160; } break; } this.LoadImage(cursorX, 18, 16, 16); this.m_effect = new Effect(); this.m_effect.End += new EventHandler(this.effect_End); this.m_processThread = new Thread(new ThreadStart(this.DoProcess)); this.m_processThread.Start(); } }
public InfoPane(gObject owner) : base(owner, 46, 350) { this.m_enemy = new ItemList<EnemyIcon>(); for (int i = 0; i < 20; i++) { this.m_enemy.Add(new EnemyIcon(this)); } this.m_font = new gFont(true); this.m_player1 = new PlayerLifeIcon(this, false); this.m_flagIcon = new FlagIcon(this); }
public TitleText(gObject owner) : base(owner, 384, 144) { this.LoadImage(0, 512, 384, 144); }
public TotalTankIcon(gObject owner, int type) : base(owner, 32, 32) { this.LoadImage(288 + (type * 32), 70, 32, 32); }
public BonusItem(gObject owner, BonusTypes type) : base(owner, 32, 32) { this.m_type = type; this.LoadImage((short)type * 32, 36, 32, 32); }
public PlayerLifeIcon(gObject owner, bool secondPlayer) : base(owner, 32, 32) { if (!secondPlayer) this.LoadImage(192, 70, 32, 32); else this.LoadImage(224, 70, 32, 32); }
public MapItem(gObject owner, MapItemTypes type, bool isHomeCover, int x, int y) : base(owner, x, y, 16, 16) { this.m_saveX = x; this.m_saveY = y; this.m_isHomeCover = isHomeCover; this.Initialize(type, isHomeCover); }
public HomeEagle(gObject owner) : base(owner, 32, 32) { this.m_bmp = new Bitmap[2]; this.m_bmp[0] = this.GetImage(32, 32, 224, 36, 32, 32); this.m_bmp[1] = this.GetImage(32, 32, 256, 36, 32, 32); this.m_image = this.m_bmp[0]; this.m_life = 2; }
public GameOverText(gObject owner) : base(owner, 64, 32) { this.m_life = 0; this.LoadImage(384, 512, 64, 32); }
public FlagIcon(gObject owner) : base(owner, 32, 32) { this.LoadImage(160, 70, 32, 32); }
public EnemyIcon(gObject owner) : base(owner, 16, 16) { this.LoadImage(176, 18, 16, 16); }