Wednesday, 18 September 2013

allocating an object of abstract class type

allocating an object of abstract class type

im trying to incorporate a CCTable view in my cocos2d-x app. i have
followed the source code from the testcpp and i am still getting this
error and in not 100% sure why
"allocating an object of abstract class type 'GameList'"
here is my source code
GameList.h
#ifndef __Squares__GameList__
#define __Squares__GameList__
#include "cocos2d.h"
#include "cocos-ext.h"
#include "GameListScene.h"
#include "GameManager.h"
using namespace cocos2d;
class GameList : public CCLayer, public extension::CCTableViewDataSource,
public extension::CCTableViewDelegate
{
public:
virtual bool init();
CREATE_FUNC(GameList);
~GameList(void);
CCLabelTTF* titleLabel;
CCLabelTTF* loginLabel;
CCLabelTTF* passwordLabel;
virtual void tableCellTouched(extension::CCTableView* table,
extension::CCTableViewCell* cell);
virtual CCSize tableCellSizeForIndex(extension::CCTableView *table,
unsigned int idx);
virtual unsigned int numberOfCellsInTableView(extension::CCTableView
*table);
};

No comments:

Post a Comment