Skip to content

Commit 2c0f283

Browse files
authored
Merge pull request #8 from Gleb-Shall/develope
add code
2 parents 64a61ea + 2653c16 commit 2c0f283

84 files changed

Lines changed: 5569 additions & 1 deletion

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.vscode/settings.json

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
{
2+
"files.associations": {
3+
"__bit_reference": "cpp",
4+
"__hash_table": "cpp",
5+
"__locale": "cpp",
6+
"__node_handle": "cpp",
7+
"__split_buffer": "cpp",
8+
"__threading_support": "cpp",
9+
"__verbose_abort": "cpp",
10+
"array": "cpp",
11+
"bitset": "cpp",
12+
"cctype": "cpp",
13+
"clocale": "cpp",
14+
"cmath": "cpp",
15+
"complex": "cpp",
16+
"cstdarg": "cpp",
17+
"cstddef": "cpp",
18+
"cstdint": "cpp",
19+
"cstdio": "cpp",
20+
"cstdlib": "cpp",
21+
"cstring": "cpp",
22+
"ctime": "cpp",
23+
"cwchar": "cpp",
24+
"cwctype": "cpp",
25+
"deque": "cpp",
26+
"execution": "cpp",
27+
"memory": "cpp",
28+
"fstream": "cpp",
29+
"initializer_list": "cpp",
30+
"iomanip": "cpp",
31+
"ios": "cpp",
32+
"iosfwd": "cpp",
33+
"iostream": "cpp",
34+
"istream": "cpp",
35+
"limits": "cpp",
36+
"locale": "cpp",
37+
"mutex": "cpp",
38+
"new": "cpp",
39+
"optional": "cpp",
40+
"ostream": "cpp",
41+
"print": "cpp",
42+
"queue": "cpp",
43+
"ratio": "cpp",
44+
"sstream": "cpp",
45+
"stack": "cpp",
46+
"stdexcept": "cpp",
47+
"streambuf": "cpp",
48+
"string": "cpp",
49+
"string_view": "cpp",
50+
"tuple": "cpp",
51+
"typeinfo": "cpp",
52+
"unordered_map": "cpp",
53+
"variant": "cpp",
54+
"vector": "cpp",
55+
"algorithm": "cpp"
56+
}
57+
}

lab1/.DS_Store

8 KB
Binary file not shown.
799 KB
Binary file not shown.
800 KB
Binary file not shown.
799 KB
Binary file not shown.
800 KB
Binary file not shown.
799 KB
Binary file not shown.

lab1/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
int main() {
1111
try {
12-
std::string inputPath = "Mandrill.bmp";
12+
std::string inputPath = "1718889054_sample_640×426.bmp";
1313

1414
std::string outputPathRotatedClockwise = "Mandrill_rotated_clockwise.bmp";
1515
std::string outputPathFilteredClockwise = "Mandrill_filtered_clockwise.bmp";

lab1/start

71.9 KB
Binary file not shown.

lab2/game/Makefile

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
CXX := g++
2+
CXXFLAGS := -std=c++17 -O1 -g -Wall -Wextra
3+
INCLUDES := -Iinclude
4+
SRC_DIR := src
5+
BIN_DIR := bin
6+
TARGET := $(BIN_DIR)/game
7+
8+
SRCS := $(SRC_DIR)/main.cpp $(SRC_DIR)/Game.cpp $(SRC_DIR)/Player.cpp $(SRC_DIR)/Enemy.cpp $(SRC_DIR)/Battle.cpp \
9+
$(SRC_DIR)/Item.cpp $(SRC_DIR)/Weapon.cpp $(SRC_DIR)/Armor.cpp $(SRC_DIR)/Potion.cpp \
10+
$(SRC_DIR)/Inventory.cpp $(SRC_DIR)/NPC.cpp $(SRC_DIR)/Quest.cpp $(SRC_DIR)/Dialog.cpp \
11+
$(SRC_DIR)/Skill.cpp $(SRC_DIR)/Magic.cpp $(SRC_DIR)/Shop.cpp $(SRC_DIR)/Logger.cpp $(SRC_DIR)/Menu.cpp \
12+
$(SRC_DIR)/World.cpp $(SRC_DIR)/Utils.cpp
13+
OBJS := $(SRCS:.cpp=.o)
14+
15+
all: $(TARGET)
16+
17+
$(TARGET): $(OBJS) | $(BIN_DIR)
18+
$(CXX) $(CXXFLAGS) $(INCLUDES) -o $@ $(OBJS)
19+
@echo "Cleaning up object files..."
20+
@rm -f $(OBJS)
21+
@echo "Build complete! Binary: $(TARGET)"
22+
23+
# Build without cleaning object files (for debugging)
24+
build: $(OBJS) | $(BIN_DIR)
25+
$(CXX) $(CXXFLAGS) $(INCLUDES) -o $(TARGET) $(OBJS)
26+
@echo "Build complete! Binary: $(TARGET) (object files preserved)"
27+
28+
$(SRC_DIR)/%.o: $(SRC_DIR)/%.cpp | $(BIN_DIR)
29+
$(CXX) $(CXXFLAGS) $(INCLUDES) -c $< -o $@
30+
31+
$(BIN_DIR):
32+
mkdir -p $(BIN_DIR)
33+
34+
clean:
35+
rm -f $(SRC_DIR)/*.o $(TARGET)
36+
37+
.PHONY: all build clean

0 commit comments

Comments
 (0)