1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-16 10:19:47 +02:00
vcmi/AI/VCAI/Goals
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
..
AbstractGoal.cpp Converted remaining identifier to new system 2023-08-25 13:38:02 +03:00
AbstractGoal.h Refactoring of serialization versioning handling 2024-01-20 20:34:51 +02:00
AdventureSpellCast.cpp Replaced boost::thread_specific_ptr with thread_local 2023-08-23 16:32:29 +03:00
AdventureSpellCast.h Remove redundant virtual specifiers 2024-02-10 20:46:13 +01:00
Build.cpp Converted remaining identifier to new system 2023-08-25 13:38:02 +03:00
Build.h Remove redundant virtual specifiers 2024-02-10 20:46:13 +01:00
BuildBoat.cpp Replaced boost::thread_specific_ptr with thread_local 2023-08-23 16:32:29 +03:00
BuildBoat.h Remove redundant virtual specifiers 2024-02-10 20:46:13 +01:00
BuildThis.cpp Converted remaining identifier to new system 2023-08-25 13:38:02 +03:00
BuildThis.h Remove redundant virtual specifiers 2024-02-10 20:46:13 +01:00
BuyArmy.cpp Replaced boost::thread_specific_ptr with thread_local 2023-08-23 16:32:29 +03:00
BuyArmy.h Remove redundant virtual specifiers 2024-02-10 20:46:13 +01:00
CGoal.h Remove redundant virtual specifiers 2024-02-10 20:46:13 +01:00
ClearWayTo.cpp Replaced boost::thread_specific_ptr with thread_local 2023-08-23 16:32:29 +03:00
ClearWayTo.h Remove redundant virtual specifiers 2024-02-10 20:46:13 +01:00
CollectRes.cpp Define each identifier in a dedicated statement 2024-01-10 00:22:23 +00:00
CollectRes.h Remove redundant virtual specifiers 2024-02-10 20:46:13 +01:00
CompleteQuest.cpp Implemented tracking of objects destroyed by players 2024-01-31 01:37:33 +02:00
CompleteQuest.h Remove redundant virtual specifiers 2024-02-10 20:46:13 +01:00
Conquer.cpp Converted remaining identifier to new system 2023-08-25 13:38:02 +03:00
Conquer.h Remove redundant virtual specifiers 2024-02-10 20:46:13 +01:00
DigAtTile.cpp Replaced boost::thread_specific_ptr with thread_local 2023-08-23 16:32:29 +03:00
DigAtTile.h Remove redundant virtual specifiers 2024-02-10 20:46:13 +01:00
Explore.cpp Converted remaining identifier to new system 2023-08-25 13:38:02 +03:00
Explore.h Remove redundant virtual specifiers 2024-02-10 20:46:13 +01:00
FindObj.cpp Converted creature ID and spell ID to new form 2023-08-25 13:38:02 +03:00
FindObj.h Remove redundant virtual specifiers 2024-02-10 20:46:13 +01:00
GatherArmy.cpp Converted remaining identifier to new system 2023-08-25 13:38:02 +03:00
GatherArmy.h Remove redundant virtual specifiers 2024-02-10 20:46:13 +01:00
GatherTroops.cpp Remove more subID access 2023-11-01 14:44:05 +02:00
GatherTroops.h Remove redundant virtual specifiers 2024-02-10 20:46:13 +01:00
GetArtOfType.cpp Replaced boost::thread_specific_ptr with thread_local 2023-08-23 16:32:29 +03:00
GetArtOfType.h Remove redundant virtual specifiers 2024-02-10 20:46:13 +01:00
Goals.h
Invalid.h Remove redundant virtual specifiers 2024-02-10 20:46:13 +01:00
RecruitHero.cpp Converted remaining identifier to new system 2023-08-25 13:38:02 +03:00
RecruitHero.h Remove redundant virtual specifiers 2024-02-10 20:46:13 +01:00
Trade.cpp
Trade.h Remove redundant virtual specifiers 2024-02-10 20:46:13 +01:00
VisitHero.cpp Replaced boost::thread_specific_ptr with thread_local 2023-08-23 16:32:29 +03:00
VisitHero.h Remove redundant virtual specifiers 2024-02-10 20:46:13 +01:00
VisitObj.cpp Converted remaining identifier to new system 2023-08-25 13:38:02 +03:00
VisitObj.h Remove redundant virtual specifiers 2024-02-10 20:46:13 +01:00
VisitTile.cpp Converted remaining identifier to new system 2023-08-25 13:38:02 +03:00
VisitTile.h Remove redundant virtual specifiers 2024-02-10 20:46:13 +01:00
Win.cpp Remove pointer to CGObjectInstance from map header 2023-11-17 16:39:15 +02:00
Win.h Remove redundant virtual specifiers 2024-02-10 20:46:13 +01:00