1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-11-24 08:32:34 +02:00
vcmi/lib/pathfinder
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
..
CGPathNode.cpp Fixed most common cases of movement actions 2023-09-16 20:07:26 +03:00
CGPathNode.h Remove redundant virtual specifiers 2024-02-10 20:46:13 +01:00
CPathfinder.cpp Working SoD version of fly 2024-02-07 19:27:02 +01:00
CPathfinder.h Do not allow moving through most of visitable objects 2023-11-28 12:32:24 +02:00
INodeStorage.h Split pathfinder into multiple smaller files 2023-06-21 13:46:09 +03:00
NodeStorage.cpp Removed most of non-const static fields in lib. Reduced header includes. 2024-01-19 13:55:22 +02:00
NodeStorage.h Remove more redundant virtual specifiers 2024-02-13 15:21:30 +01:00
PathfinderOptions.cpp Working SoD version of fly 2024-02-07 19:27:02 +01:00
PathfinderOptions.h Merge pull request #3600 from dydzio0614/sod-fly 2024-02-11 12:26:20 +02:00
PathfinderUtil.h Fix most of memleaks discovered by valgrind 2023-11-13 16:27:15 +02:00
PathfindingRules.cpp Working SoD version of fly 2024-02-07 19:27:02 +01:00
PathfindingRules.h Split pathfinder into multiple smaller files 2023-06-21 13:46:09 +03:00
TurnInfo.cpp Removed remaining usages of std::vector<bool> 2023-11-15 15:55:18 +02:00
TurnInfo.h Removed remaining usages of std::vector<bool> 2023-11-15 15:55:18 +02:00