Exemplo n.º 1
0
void nofScout_Free::Serialize_nofScout_Free(SerializedGameData* sgd) const
{
    Serialize_nofFlagWorker(sgd);

    sgd->PushUnsignedShort(next_x);
    sgd->PushUnsignedShort(next_y);
}
void nofGeologist::Serialize_nofGeologist(SerializedGameData& sgd) const
{
    Serialize_nofFlagWorker(sgd);

    sgd.PushUnsignedShort(signs);

    sgd.PushUnsignedInt(available_nodes.size());
    for(const auto& available_node : available_nodes)
    {
        sgd.PushMapPoint(available_node);
    }

    sgd.PushMapPoint(node_goal);

    for(unsigned i = 0; i < 5; ++i)
        sgd.PushBool(resAlreadyFound[i]);
}
Exemplo n.º 3
0
void nofGeologist::Serialize_nofGeologist(SerializedGameData& sgd) const
{
    Serialize_nofFlagWorker(sgd);

    sgd.PushUnsignedShort(signs);

    sgd.PushUnsignedInt(available_nodes.size());
    for(std::vector< MapPoint >::const_iterator it = available_nodes.begin(); it != available_nodes.end(); ++it)
    {
        sgd.PushMapPoint(*it);
    }

    sgd.PushMapPoint(node_goal);

    for(unsigned i = 0; i < 5; ++i)
        sgd.PushBool(resAlreadyFound[i]);

}
Exemplo n.º 4
0
void nofScout_Free::Serialize_nofScout_Free(SerializedGameData* sgd) const
{
    Serialize_nofFlagWorker(sgd);

    sgd->PushMapPoint(nextPos);
}