1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-28 23:06:24 +02:00
vcmi/AI/Nullkiller
Alexander Wilms 522cb571b3 Remove redundant virtual specifiers
`grep -nr virtual | grep -v googletest | grep override > ../redundant_virtual.txt`

```python
import os

with open("../redundant_virtual.txt") as f:
    for line in f:
        print()
        line: str = line.strip()
        print(line)
        tmp = line.split(":")
        file = tmp[0].strip()
        code = tmp[-1].strip()
        print(file)
        print(code)
        new_code = code.replace("virtual ", "", 1)
        # https://superuser.com/a/802490/578501
        command = f"export FIND='{code}' && export REPLACE='{new_code}' && ruby -p -i -e \"gsub(ENV['FIND'], ENV['REPLACE'])\" {file}"
        os.system(command)
```
2024-02-10 20:46:13 +01:00
..
Analyzers Added RandomGeneratorUtil::nextItemWeighted convenience method 2024-01-31 00:17:40 +02:00
Behaviors Remove redundant virtual specifiers 2024-02-10 20:46:13 +01:00
Engine NKAI: various AI fixes after tests in headless 2024-01-20 22:55:30 +02:00
Goals Remove redundant virtual specifiers 2024-02-10 20:46:13 +01:00
Helpers Another build fix 2023-07-31 22:01:11 +03:00
Markers Remove redundant virtual specifiers 2024-02-10 20:46:13 +01:00
Pathfinding Remove redundant virtual specifiers 2024-02-10 20:46:13 +01:00
AIGateway.cpp quick combat vs ai 2024-01-25 23:44:41 +01:00
AIGateway.h Refactoring of serialization versioning handling 2024-01-20 20:34:51 +02:00
AIUtility.cpp Remove most of non-const access to VLC entities 2024-01-19 13:54:49 +02:00
AIUtility.h Refactoring of serialization versioning handling 2024-01-20 20:34:51 +02:00
CMakeLists.txt NKAI: mana recovery 2023-09-30 10:37:36 +03:00
main.cpp NKAI: namespace 2022-10-04 08:40:14 +03:00
StdInc.cpp Nullkiller: copy VCAI 2021-07-26 21:02:50 +03:00
StdInc.h wrap all library code into namespace if VCMI_LIB_NAMESPACE is defined 2022-09-24 15:55:21 +03:00