This repository has been archived by the owner on Apr 17, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #22 from TCL606/TCL
chore: Move gamobj to GameClass folder and add Skills
- Loading branch information
Showing
29 changed files
with
364 additions
and
147 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<TargetFramework>net5.0</TargetFramework> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<ProjectReference Include="..\FrameRateTask\FrameRateTask.csproj" /> | ||
<ProjectReference Include="..\GameEngine\GameEngine.csproj" /> | ||
<ProjectReference Include="..\Preparation\Preparation.csproj" /> | ||
<ProjectReference Include="..\Server\Server.csproj" /> | ||
</ItemGroup> | ||
|
||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
using GameClass.Skill; | ||
|
||
namespace GameClass.GameObj | ||
{ | ||
public partial class Character | ||
{ | ||
private delegate bool ActiveSkill(Character player); //返回值:是否成功释放了技能 | ||
private delegate void PassiveSkill(Character player); | ||
ActiveSkill commonSkill; | ||
public bool UseCommonSkill() | ||
{ | ||
return commonSkill(this); | ||
} | ||
private bool isCommonSkillAvailable = true; //普通技能可用标志 | ||
public bool IsCommonSkillAvailable | ||
{ | ||
get => isCommonSkillAvailable; | ||
set | ||
{ | ||
lock (gameObjLock) | ||
isCommonSkillAvailable = value; | ||
} | ||
} | ||
PassiveSkill passiveSkill; | ||
public void UsePassiveSkill() | ||
{ | ||
passiveSkill(this); | ||
return; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
logic/Preparation/GameObj/GameObj.cs → logic/GameClass/GameObj/GameObj.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
logic/Preparation/GameObj/MapGameTimer.cs → logic/GameClass/GameObj/MapGameTimer.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
logic/Preparation/GameObj/ObjOfCharacter.cs → logic/GameClass/GameObj/ObjOfCharacter.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
logic/Preparation/GameObj/OutOfBoundBlock.cs → logic/GameClass/GameObj/OutOfBoundBlock.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
logic/Preparation/GameObj/Prop.cs → logic/GameClass/GameObj/Prop.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 3 additions & 4 deletions
7
logic/Preparation/GameObj/Wall.cs → logic/GameClass/GameObj/Wall.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.