コード例 #1
0
ファイル: Player.cs プロジェクト: Sirkirill/Boulder-Dash-2
 public Player(int X = 0, int Y = 0, gameElements Description = gameElements.Player, byte health = 5, direction direction = direction.Stop, int score = 0) : base(X, Y, Description, health, direction)
 {
     Description = gameElements.Player;
     Direction   = direction.Stop;
     base.health = health;
     Score       = 0;
 }
コード例 #2
0
 public Cell(gameElements Description, char Symbol = ' ', ConsoleColor FrontColor = ConsoleColor.White, ConsoleColor BackColor = ConsoleColor.Black)
 {
     description = Description;
     DefoultCellSettings();
 }
コード例 #3
0
 public AnimateObject(int X, int Y, gameElements Description, byte health, direction direction) : base(X, Y, Description)
 {
     CellThatWasHere = gameElements.Empty;
     this.health     = health;
     Direction       = direction;
 }
コード例 #4
0
 public InanimateObjects(int X, int Y, gameElements Description) : base(X, Y, Description)
 {
 }
コード例 #5
0
 public GameObject(int x, int y, gameElements description)
 {
     X           = x;
     Y           = y;
     Description = description;
 }