~ubuntu-branches/ubuntu/trusty/manaplus/trusty

« back to all changes in this revision

Viewing changes to src/being/playerrelations.cpp

  • Committer: Package Import Robot
  • Author(s): Patrick Matthäi
  • Date: 2013-10-07 10:26:14 UTC
  • mfrom: (1.1.11)
  • Revision ID: package-import@ubuntu.com-20131007102614-tg2zjdz8vmtl6n7i
Tags: 1.3.9.29-1
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
71
71
        std::map<std::string, PlayerRelation *> *>
72
72
{
73
73
public:
74
 
    virtual ConfigurationObject *writeConfigItem(
 
74
    ConfigurationObject *writeConfigItem(
75
75
        const std::pair<std::string, PlayerRelation *> &value,
76
76
        ConfigurationObject *const cobj) const override
77
77
    {
84
84
        return cobj;
85
85
    }
86
86
 
87
 
    virtual std::map<std::string, PlayerRelation *> *
 
87
    std::map<std::string, PlayerRelation *> *
88
88
    readConfigItem(const ConfigurationObject *const cobj,
89
89
                   std::map<std::string, PlayerRelation *>
90
90
                   *const container) const override
414
414
    signalUpdate("");
415
415
}
416
416
 
417
 
void PlayerRelationsManager::ignoreTrade(const std::string &name)
 
417
void PlayerRelationsManager::ignoreTrade(const std::string &name) const
418
418
{
419
419
    if (name.empty())
420
420
        return;
467
467
        mShortName = PLAYER_IGNORE_STRATEGY_NOP;
468
468
    }
469
469
 
470
 
    virtual void ignore(Being *const being A_UNUSED,
471
 
                        const unsigned int flags A_UNUSED) const override
 
470
    void ignore(Being *const being A_UNUSED,
 
471
                const unsigned int flags A_UNUSED) const override
472
472
    {
473
473
    }
474
474
};
484
484
        mShortName = "dotdotdot";
485
485
    }
486
486
 
487
 
    virtual void ignore(Being *const being,
488
 
                        const unsigned int flags A_UNUSED) const override
 
487
    void ignore(Being *const being,
 
488
                const unsigned int flags A_UNUSED) const override
489
489
    {
490
490
        if (!being)
491
491
            return;
507
507
        mShortName = "blinkname";
508
508
    }
509
509
 
510
 
    virtual void ignore(Being *const being,
511
 
                        const unsigned int flags A_UNUSED) const override
 
510
    void ignore(Being *const being,
 
511
                const unsigned int flags A_UNUSED) const override
512
512
    {
513
513
        if (!being)
514
514
            return;
530
530
        mShortName = shortname;
531
531
    }
532
532
 
533
 
    virtual void ignore(Being *const being,
534
 
                        const unsigned int flags A_UNUSED) const override
 
533
    void ignore(Being *const being,
 
534
                const unsigned int flags A_UNUSED) const override
535
535
    {
536
536
        if (!being)
537
537
            return;