Skip to content

laba9#23

Open
SonyaAnik wants to merge 2 commits intomainfrom
lab9
Open

laba9#23
SonyaAnik wants to merge 2 commits intomainfrom
lab9

Conversation

@SonyaAnik
Copy link
Collaborator

No description provided.

@SonyaAnik SonyaAnik requested a review from zaryanezrya April 5, 2024 11:38
@codecov
Copy link

codecov bot commented Apr 5, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.42%. Comparing base (8808a5f) to head (0d398c1).
Report is 7 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #23      +/-   ##
==========================================
+ Coverage   99.26%   99.42%   +0.15%     
==========================================
  Files          38       45       +7     
  Lines         544      692     +148     
  Branches       31       37       +6     
==========================================
+ Hits          540      688     +148     
  Misses          3        3              
  Partials        1        1              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

{
IUObject obj = (IUObject) args[0];
obj.SetProperty("fuel", Convert.ToDouble(args[1]));
return new object();

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

return SetFuelCommand

Assert.True((Vector) gameObjects["4"].GetProperty("position") == new Vector(0, 0));
Assert.True((Vector) gameObjects["5"].GetProperty("position") == new Vector(-5, 15));

new CreateEmptyShips().RunStrategy();

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

?

objects[i].SetProperty("position", pos);
}
}
else // ������������ ������������

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

комментарии убрать

{
int vericalOffset = (int)args[2];
int horizontalPos = (int)args[3];
for (int i = 0; i < objects.Count(); i++)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LINQ

{
public object RunStrategy(params object[] args)
{
IUObject[] objects = (IUObject[]) args[0];

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Смена состояния в команде

int verticalOffset = (int) args[2];
int horizontalDif = (int) args[3];
int horizontalPos = (int) args[4];
for (int i = 0; i < objects.Count(); i++)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LINQ

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants