コード例 #1
0
        /// <summary>
        /// Effectを初期化
        /// </summary>
        private void InitEffect()
        {
            townEffect = new TownEffect(
                new Vector2(Def.WindowDef.WINDOW_WIDTH / 2 + 300, 300),
                gameDevice);
            townEffect.Initialize();

            effectTimer = new Timer(1.2f);
            effectTimer.Initialize();

            townEffect.SetScaleRate(effectTimer.Rate() * 1.5f + 1);
        }
コード例 #2
0
 /**
  * Checks whether the given town effect type is valid.
  * @param towneffect_type The town effect to check.
  * @returns True if and only if the town effect type is valid.
  */
 public static bool IsValidTownEffect(TownEffect towneffect_type)
 {
     throw null;
 }
コード例 #3
0
ファイル: AITown.cs プロジェクト: ttv86/CsNut
 /**
  * Get the amount of cargo that needs to be delivered (per TownEffect) for a
  *  town to grow. All goals need to be reached before a town will grow.
  * @param town_id The index of the town.
  * @param towneffect_id The index of the towneffect.
  * @returns The goal of the cargo.
  * @note Goals can change over time. For example with a changing snowline, or
  *  with a growing town.
  */
 public static int GetCargoGoal(TownID town_id, TownEffect towneffect_id)
 {
     throw null;
 }
コード例 #4
0
ファイル: AITown.cs プロジェクト: ttv86/CsNut
 /**
  * Get the total amount of cargo effects received by a town last month.
  * @param town_id The index of the town.
  * @param towneffect_id The index of the cargo.
  * @returns The amount of cargo received by this town last month for this cargo effect.
  */
 public static int GetLastMonthReceived(TownID town_id, TownEffect towneffect_id)
 {
     throw null;
 }