コード例 #1
0
ファイル: Weapon.cs プロジェクト: DutchSoldier/FHSICT
 public Weapon(Game game, Point location)
     : base(game, location)
 {
     this.game = game;
     this.location = location;
     pickedUp = false;
 }
コード例 #2
0
 public Mangual(Game game, Point location)
     : base(game, location)
 {
 }
コード例 #3
0
ファイル: Bat.cs プロジェクト: sreeshprakash/C_Sharp
 public Bat(Game game, Point location, Size spriteSize)
     : base(game, location, 6, spriteSize)
 {
 }
コード例 #4
0
ファイル: Ghost.cs プロジェクト: sreeshprakash/C_Sharp
 public Ghost(Game game, Point location, Size spriteSize)
     : base(game, location, 8, spriteSize)
 {
 }
コード例 #5
0
ファイル: Player.cs プロジェクト: walbalooshi/TheQuest
 public Player(Game game, Point location, Size spriteSize)
     : base(game, location)
 {
     hitPoints = 10;
     SpriteSize = spriteSize;
 }
コード例 #6
0
ファイル: Form1.cs プロジェクト: MarkPThomas/HeadFirst-CSharp
        private void Form1_Load(object sender, EventArgs e)
        {
            // Set offset of top-left corner of icon to center
            iconOffset.X = player.Width / 2;
            iconOffset.Y = player.Height / 2;

            // Initialize game object
            game = new Game(new Rectangle(78 + iconOffset.X, 57 + iconOffset.Y, 423, 161));
            game.NewLevel(random);

            // Set characters in the game
            UpdateCharacters();

            // Initialize controls
            RemoveAllInventorySelections();
            SetMoveDirections();
            SetAttackDirections();
            SetLevelLabel();
            grpbBoxPlayStyle.Visible = false;
            actionTimer.Interval = gameSpeed;
        }
コード例 #7
0
ファイル: Sword.cs プロジェクト: DutchSoldier/FHSICT
 public Sword(Game game, Point location)
 : base(game, location) { }
コード例 #8
0
 public RedPotion(Game game, Point location)
     : base(game, location)
 {
 }
コード例 #9
0
 public BluePotion(Game game, Point location)
     : base(game, location)
 {
 }
コード例 #10
0
ファイル: Ghoul.cs プロジェクト: sreeshprakash/C_Sharp
 public Ghoul(Game game, Point location, Size spriteSize)
     : base(game, location, 10, spriteSize)
 {
 }
コード例 #11
0
 public Morte(Game game, Point location)
     : base(game, location, 10)
 {
 }
コード例 #12
0
 public Wizard(Game game, Point location)
     : base(game, location, hitPoints)
 {
 }
コード例 #13
0
 public Fantasma(Game game, Point location)
     : base(game, location, 8)
 {
 }
コード例 #14
0
ファイル: Ghoul.cs プロジェクト: MarkPThomas/HeadFirst-CSharp
 public Ghoul(Game game, Point location)
     : base(game, location, hitPoints)
 {
 }
コード例 #15
0
 public Arco(Game game, Point location)
     : base(game, location)
 {
 }
コード例 #16
0
 private void frmTheQuest_Load(object sender, EventArgs e)
 {
     game = new Game(new Rectangle(78, 57, 420, 155));
     game.NewLevel(random);
     UpdateCharacters();
 }
コード例 #17
0
ファイル: Mace.cs プロジェクト: MarkPThomas/HeadFirst-CSharp
 public Mace(Game game, Point location)
     : base(game, location)
 {
 }
コード例 #18
0
 public BattleAxe(Game game, Point location)
     : base(game, location)
 {
 }
コード例 #19
0
ファイル: Ghost.cs プロジェクト: DutchSoldier/FHSICT
 public Ghost(Game game, Point location)
     : base(game, location, 8)
 { }
コード例 #20
0
ファイル: Player.cs プロジェクト: DutchSoldier/FHSICT
 public Player(Game game, Point location)
     : base(game, location)
 {
     hitPoints = 10;
 }
コード例 #21
0
 public Shield(Game game, Point location)
     : base(game, location)
 {
 }
コード例 #22
0
ファイル: BluePotion.cs プロジェクト: sreeshprakash/C_Sharp
 public BluePotion(Game game, Point location)
     : base(game, location)
 {
     Used = false;
 }
コード例 #23
0
ファイル: Bat.cs プロジェクト: DutchSoldier/FHSICT
 public Bat(Game game, Point location)
     : base(game, location, 6)
 { }
コード例 #24
0
ファイル: Bat.cs プロジェクト: MarkPThomas/HeadFirst-CSharp
 public Bat(Game game, Point location)
     : base(game, location, hitPoints)
 {
 }
コード例 #25
0
ファイル: Enemy.cs プロジェクト: sreeshprakash/C_Sharp
 public Enemy(Game game, Point location, int hitPoints, Size spriteSize)
     : base(game, location)
 {
     this.hitPoints = hitPoints;
     SpriteSize = spriteSize;
 }
コード例 #26
0
 public Quiver(Game game, Point location)
     : base(game, location)
 {
 }
コード例 #27
0
 public Weapon(Game game, Point location)
     : base(game, location)
 {
     PickedUp = false;
 }
コード例 #28
0
 public Espada(Game game, Point location)
     : base(game, location)
 {
 }
コード例 #29
0
ファイル: Enemy.cs プロジェクト: MarkPThomas/HeadFirst-CSharp
 public Enemy(Game game, Point location, int hitPoints)
     : base(game, location)
 {
     HitPoints = hitPoints;
 }
コード例 #30
0
ファイル: Mover.cs プロジェクト: sreeshprakash/C_Sharp
 public Mover(Game game, Point location)
 {
     this.game = game;
     this.location = location;
 }