~weinzh/qfm/devel

« back to all changes in this revision

Viewing changes to game/qfmleague.h

  • Committer: Heinrich Weinz
  • Date: 2008-01-29 20:40:46 UTC
  • Revision ID: weinzh@googlemail.com-20080129204046-bvadhg6o8ce7o67r
Gamestar creation moved to qfmgame. Class qfmMain renamed in QfmMainWindow. Turn over implemented.

Show diffs side-by-side

added added

removed removed

Lines of Context:
35
35
class QfmLeague : public QObject {
36
36
    Q_OBJECT
37
37
public:
38
 
    QfmLeague( QObject* parent, QList<QfmClub*> &clubList, const QString &defFileString );
 
38
    QfmLeague( QObject *parent, QList<QfmClub*> *clubList, const QString &defFileString );
39
39
 
40
40
    ~QfmLeague();
41
41
 
42
42
    QString leagueName() const;
43
43
 
44
44
    int level() const;
45
 
    QList< QfmClub * > clubList() const;
 
45
    QList< QfmClub * > *clubList();
46
46
    QList< QfmTeam * > teamList() const;
47
47
 
 
48
    QList < QfmTeam* > promoteTeams();
 
49
    QList < QfmTeam * > demoteTeams();
48
50
 
49
51
private:
50
52
    int m_level;
51
53
    QString m_leagueName;
52
 
    QList<QfmClub*> &m_clubList;
 
54
    QList<QfmClub*> *m_clubList;
53
55
    QList<QfmTeam*> m_teamList;
54
 
        
 
56
 
55
57
    void readLeague( const QString &defFileString );
56
58
};
57
59
 
58
60
 
59
 
 
60
 
inline QList< QfmClub * > QfmLeague::clubList() const {
 
61
inline QList< QfmClub * > *QfmLeague::clubList(){
61
62
    return m_clubList;
62
63
}
63
64