From 1b8f594ea2426a10014eea110563e44fdf7bed77 Mon Sep 17 00:00:00 2001 From: MrKBear Date: Tue, 12 Apr 2022 17:05:45 +0800 Subject: [PATCH] Rename contact attacking --- source/Behavior/Behavior.ts | 4 ++-- .../Behavior/{Attacking.ts => ContactAttacking.ts} | 14 +++++++------- source/Page/SimulatorWeb/SimulatorWeb.tsx | 4 ++-- 3 files changed, 11 insertions(+), 11 deletions(-) rename source/Behavior/{Attacking.ts => ContactAttacking.ts} (84%) diff --git a/source/Behavior/Behavior.ts b/source/Behavior/Behavior.ts index 60b6eff..d506530 100644 --- a/source/Behavior/Behavior.ts +++ b/source/Behavior/Behavior.ts @@ -4,7 +4,7 @@ import { PhysicsDynamics } from "@Behavior/PhysicsDynamics"; import { Brownian } from "@Behavior/Brownian"; import { BoundaryConstraint } from "@Behavior/BoundaryConstraint"; import { Tracking } from "@Behavior/Tracking"; -import { Attacking } from "@Behavior/Attacking"; +import { ContactAttacking } from "@Behavior/ContactAttacking"; const AllBehaviors: IAnyBehaviorRecorder[] = [ new BehaviorRecorder(Template), @@ -12,7 +12,7 @@ const AllBehaviors: IAnyBehaviorRecorder[] = [ new BehaviorRecorder(Brownian), new BehaviorRecorder(BoundaryConstraint), new BehaviorRecorder(Tracking), - new BehaviorRecorder(Attacking), + new BehaviorRecorder(ContactAttacking), ] /** diff --git a/source/Behavior/Attacking.ts b/source/Behavior/ContactAttacking.ts similarity index 84% rename from source/Behavior/Attacking.ts rename to source/Behavior/ContactAttacking.ts index 829b360..93e9e32 100644 --- a/source/Behavior/Attacking.ts +++ b/source/Behavior/ContactAttacking.ts @@ -3,17 +3,17 @@ import { Group } from "@Model/Group"; import { Individual } from "@Model/Individual"; import { Model } from "@Model/Model"; -type IAttackingBehaviorParameter = { +type IContactAttackingBehaviorParameter = { target: "CLG", success: "number", range: "number" } -type IAttackingBehaviorEvent = {} +type IContactAttackingBehaviorEvent = {} -class Attacking extends Behavior { +class ContactAttacking extends Behavior { - public override behaviorId: string = "Attacking"; + public override behaviorId: string = "ContactAttacking"; public override behaviorName: string = "$Title"; @@ -54,8 +54,8 @@ class Attacking extends Behavior> = { "$Title": { - "ZH_CN": "攻击", - "EN_US": "Attacking" + "ZH_CN": "接触攻击", + "EN_US": "Contact Attacking" }, "$Target": { "ZH_CN": "攻击目标", @@ -76,4 +76,4 @@ class Attacking extends Behavior