コード例 #1
0
ファイル: EnemyPlaceHolder.cs プロジェクト: SNUGDC/BeerWorld
 public EnemyPlaceHolder()
 {
     //Smallest Enemies.
     enemyPlaces.Add(FieldTileUtility.GetKeyFromCoord(6, 4));
     enemyPlaces.Add(FieldTileUtility.GetKeyFromCoord(10, 4));
     enemyPlaces.Add(FieldTileUtility.GetKeyFromCoord(11, 11));
     //Middle Enemies.
     enemyPlaces.Add(FieldTileUtility.GetKeyFromCoord(5, 5));
     enemyPlaces.Add(FieldTileUtility.GetKeyFromCoord(9, 5));
     enemyPlaces.Add(FieldTileUtility.GetKeyFromCoord(10, 11));
 }
コード例 #2
0
    public EnemyInfoHolder()
    {
        //Smallest Enemies.
        enemyInfoList.Add(new EnemyInfo(FieldTileUtility.GetKeyFromCoord(6, 4), Enemy.EnemyType.Smallest));
        enemyInfoList.Add(new EnemyInfo(FieldTileUtility.GetKeyFromCoord(10, 4), Enemy.EnemyType.Smallest));
        enemyInfoList.Add(new EnemyInfo(FieldTileUtility.GetKeyFromCoord(9, 10), Enemy.EnemyType.Smallest));

        //Middle Enemies.
        enemyInfoList.Add(new EnemyInfo(FieldTileUtility.GetKeyFromCoord(5, 5), Enemy.EnemyType.Middle));
        enemyInfoList.Add(new EnemyInfo(FieldTileUtility.GetKeyFromCoord(9, 5), Enemy.EnemyType.Middle));
        enemyInfoList.Add(new EnemyInfo(FieldTileUtility.GetKeyFromCoord(8, 10), Enemy.EnemyType.Middle));
    }