C# Class ElectronicObserver.Data.Battle.Phase.PhaseBase

戦闘フェーズの基底クラスです。
显示文件 Open project: RadarNyan/ElectronicObserver-ML Class Usage Examples

Public Properties

Property Type Description
Title string

Protected Properties

Property Type Description
Battle BattleData

Public Methods

Method Description
EmulateBattle ( Array hps, Array damages ) : void

戦闘をエミュレートします。

GetBattleDetail ( ) : string
GetBattleDetail ( int index ) : string
ToString ( ) : string

Protected Methods

Method Description
AddDamage ( Array hps, int index, int damage ) : void

被ダメージ処理を行います。

IsIndexEnemy ( int index ) : bool
IsIndexFriend ( int index ) : bool
PhaseBase ( BattleData battle, string title ) : ElectronicObserver.Data.Battle.Detail
SearchBattleDetails ( int index ) : IEnumerable

Method Details

AddDamage() protected method

被ダメージ処理を行います。
protected AddDamage ( Array hps, int index, int damage ) : void
hps Array 各艦のHPリスト。
index int ダメージを受ける艦のインデックス。
damage int ダメージ。
return void

EmulateBattle() public abstract method

戦闘をエミュレートします。
public abstract EmulateBattle ( Array hps, Array damages ) : void
hps Array 各艦のHPリスト。
damages Array 各艦の与ダメージリスト。
return void

GetBattleDetail() public method

public GetBattleDetail ( ) : string
return string

GetBattleDetail() public method

public GetBattleDetail ( int index ) : string
index int
return string

IsIndexEnemy() protected static method

protected static IsIndexEnemy ( int index ) : bool
index int
return bool

IsIndexFriend() protected static method

protected static IsIndexFriend ( int index ) : bool
index int
return bool

PhaseBase() protected method

protected PhaseBase ( BattleData battle, string title ) : ElectronicObserver.Data.Battle.Detail
battle BattleData
title string
return ElectronicObserver.Data.Battle.Detail

SearchBattleDetails() protected method

protected SearchBattleDetails ( int index ) : IEnumerable
index int
return IEnumerable

ToString() public method

public ToString ( ) : string
return string

Property Details

Battle protected_oe property

protected BattleData Battle
return BattleData

Title public_oe property

public string Title
return string