1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-16 10:19:47 +02:00
vcmi/AI/Nullkiller/Engine
Alexander Wilms 678cacbd25 Remove more redundant virtual specifiers
`grep -nr "virtual " | grep -v googletest | grep " override" | grep -v overriden > ../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(":",2)
        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-13 15:21:30 +01:00
..
AIMemory.cpp deeper decoupling 2023-04-30 17:13:07 +04:00
AIMemory.h NKAI: namespace 2022-10-04 08:40:14 +03:00
DeepDecomposer.cpp Replaced boost::thread_specific_ptr with thread_local 2023-08-23 16:32:29 +03:00
DeepDecomposer.h vcmi: modernize headers 2023-04-30 13:35:54 +03:00
FuzzyEngines.cpp Define each identifier in a dedicated statement 2024-01-10 00:22:23 +00:00
FuzzyEngines.h Define each identifier in a dedicated statement 2024-01-10 00:22:23 +00:00
FuzzyHelper.cpp Make IObjectInterface::cb non-static 2024-01-19 13:55:21 +02:00
FuzzyHelper.h vcmi: modernize headers 2023-04-30 13:35:54 +03:00
Nullkiller.cpp NKAI: mutex for internal AI state 2024-01-20 22:55:27 +02:00
Nullkiller.h NKAI: mutex for internal AI state 2024-01-20 22:55:27 +02:00
PriorityEvaluator.cpp Remove more redundant virtual specifiers 2024-02-13 15:21:30 +01:00
PriorityEvaluator.h Implemented basic version of configurable Witch Hut 2023-10-16 00:12:38 +03:00