1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-11-24 08:32:34 +02:00
vcmi/lib/mapObjects
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
..
CArmedInstance.cpp Make IObjectInterface::cb non-static 2024-01-19 13:55:21 +02:00
CArmedInstance.h Refactoring of serialization versioning handling 2024-01-20 20:34:51 +02:00
CBank.cpp Make IObjectInterface::cb non-static 2024-01-19 13:55:21 +02:00
CBank.h Refactoring of serialization versioning handling 2024-01-20 20:34:51 +02:00
CGCreature.cpp Added RandomGeneratorUtil::nextItemWeighted convenience method 2024-01-31 00:17:40 +02:00
CGCreature.h Refactoring of serialization versioning handling 2024-01-20 20:34:51 +02:00
CGDwelling.cpp Removed most of non-const static fields in lib. Reduced header includes. 2024-01-19 13:55:22 +02:00
CGDwelling.h Refactoring of serialization versioning handling 2024-01-20 20:34:51 +02:00
CGHeroInstance.cpp Fix typo 2024-02-07 00:15:20 +02:00
CGHeroInstance.h Added range checks to values read from h3m. 2024-02-05 21:27:55 +02:00
CGMarket.cpp arts altar - arts holder 2024-01-27 15:28:21 +02:00
CGMarket.h arts altar - arts holder 2024-01-27 15:28:21 +02:00
CGObjectInstance.cpp Make IObjectInterface::cb non-static 2024-01-19 13:55:21 +02:00
CGObjectInstance.h Refactoring of serialization versioning handling 2024-01-20 20:34:51 +02:00
CGPandoraBox.cpp Make IObjectInterface::cb non-static 2024-01-19 13:55:21 +02:00
CGPandoraBox.h Refactoring of serialization versioning handling 2024-01-20 20:34:51 +02:00
CGTownBuilding.cpp Replaced remaining placeholder code with callbacks 2024-01-19 13:55:22 +02:00
CGTownBuilding.h Refactoring of serialization versioning handling 2024-01-20 20:34:51 +02:00
CGTownInstance.cpp Removed most of non-const static fields in lib. Reduced header includes. 2024-01-19 13:55:22 +02:00
CGTownInstance.h Refactoring of serialization versioning handling 2024-01-20 20:34:51 +02:00
CObjectHandler.cpp Reduced number of accesses to CGObjectInstance::subID 2023-11-01 14:43:20 +02:00
CObjectHandler.h Remove no longer used serialization methods 2023-11-08 21:27:05 +02:00
CQuest.cpp Implemented tracking of objects destroyed by players 2024-01-31 01:37:33 +02:00
CQuest.h Implemented tracking of objects destroyed by players 2024-01-31 01:37:33 +02:00
CRewardableObject.cpp Make IObjectInterface::cb non-static 2024-01-19 13:55:21 +02:00
CRewardableObject.h Refactoring of serialization versioning handling 2024-01-20 20:34:51 +02:00
IMarket.cpp Removed unnecessary access to IHandler::objects 2024-01-19 13:56:06 +02:00
IMarket.h Remove all remaining implicit conversion in lib 2023-11-15 15:55:19 +02:00
IObjectInterface.cpp Make IObjectInterface::cb non-static 2024-01-19 13:55:21 +02:00
IObjectInterface.h Refactoring of serialization versioning handling 2024-01-20 20:34:51 +02:00
MapObjects.h Initial implementation for rewardable town building 2023-05-01 00:14:53 +04:00
MiscObjects.cpp split getBonusLocalFirst into two distinct method: 2024-01-19 13:56:06 +02:00
MiscObjects.h Remove redundant virtual specifiers 2024-02-10 20:46:13 +01:00
ObjectTemplate.cpp Removed unnecessary access to IHandler::objects 2024-01-19 13:56:06 +02:00
ObjectTemplate.h Refactoring of serialization versioning handling 2024-01-20 20:34:51 +02:00