SFML и C++ Уроки \ Разработка игр › Форумы › SFML Graphics › Движение объектов › Ответ в теме: Движение объектов
Error 22 error C2661: ‘Enemy::Enemy’ : no overloaded function takes 6 arguments c:\users\леша\documents\visual studio 2013\projects\consoleapplication7\source.cpp 36 1 ConsoleApplication7
24 IntelliSense: no instance of constructor “Enemy::Enemy” matches the argument list
argument types are: (sf::Image, Level, int, int, int, int) c:\Users\Леша\Documents\Visual Studio 2013\Projects\ConsoleApplication7\Source.cpp 35 31 ConsoleApplication7
выдает 2 ошибки причем вообще непонятно почему
Image easyEnemyImage;
easyEnemyImage.loadFromFile(“B1.png”);
easyEnemyImage.createMaskFromColor(Color(255, 0, 0));
list<Entity*>entites;
list<Entity*>::iterator it;
Object e = lvl.GetObject(“easyEnemy”);
int ee = 10;
for (int i = 0; i < ee;i++)
entites.push_back(new Enemy (easyEnemyImage, lvl, 64, 64, 32, 32));