このドキュメントは、シミュレーションで使う基礎コンポーネントを一覧化したものです。
実装参照:
src/ts/catalog.tssrc/ts/components.tssrc/ts/starship.ts
- class:
HullA - mass: 1
- hp/maxHp: 100/100
- size: 12
- class:
HullB - mass: 3
- hp/maxHp: 300/300
- size: 28
- class:
HullC - mass: 5
- hp/maxHp: 500/500
- size: 47
- class:
ThrusterEngine - mass: 1
- thrust: 0.15
- rotationSpeed: 0.1
- class:
RadarA - mass: 0
- detectionRange: 120
- class:
RadarB - mass: 1
- detectionRange: 160
- class:
RadarC - mass: 2
- detectionRange: 200
注記:
detectionRangeは索敵判定・射撃判定・索敵円描画に反映済み
- class:
IndependentTurretA - mass: 1
- hp/maxHp: 100/100
- fireInterval: 60
- bulletSpeed: 5
- bulletDamage: 10
- maxRange: 160
- rotationSpeed: 0
- class:
IndependentTurretB - mass: 2
- hp/maxHp: 150/150
- fireInterval: 60
- bulletSpeed: 5
- bulletDamage: 10
- maxRange: 200
- rotationSpeed: 0.1
- class:
IndependentTurretC - mass: 4
- hp/maxHp: 200/200
- fireInterval: 90
- bulletSpeed: 5
- bulletDamage: 20
- maxRange: 260
- rotationSpeed: 0.1
注記:
- 砲塔の
canFire()は砲塔固有の索敵値ではなく、艦のレーダー距離(getDetectionRange())を使う
src/ts/starship.ts の SHIP_PRESETS:
- hullType:
hullA - weaponCount: 1
- engineCount: 1
- weaponClass: 未指定(
StarshipデフォルトIndependentTurretB)
- hullType:
hullB - weaponCount: 2
- engineCount: 2
- weaponClass:
turretB - weaponMaxRange: 270(上書き)
- hullType:
hullC - weaponCount: 3
- engineCount: 3
- weaponClass:
turretC