Esempio n. 1
0
void nofCatapultMan::Serialize_nofCatapultMan(SerializedGameData& sgd) const
{
    Serialize_nofBuildingWorker(sgd);

    sgd.PushSignedInt(wheel_steps);
    target.Serialize_PossibleTarget(sgd);
}
Esempio n. 2
0
void nofFarmhand::Serialize_nofFarmhand(SerializedGameData* sgd) const
{
    Serialize_nofBuildingWorker(sgd);

    sgd->PushUnsignedShort(dest_x);
    sgd->PushUnsignedShort(dest_y);
}
Esempio n. 3
0
void nofHunter::Serialize_nofHunter(SerializedGameData * sgd) const
{
	Serialize_nofBuildingWorker(sgd);

	if(state != STATE_FIGUREWORK && state != STATE_WAITING1)
	{
		sgd->PushObject(animal,true);
		sgd->PushUnsignedShort(shooting_x);
		sgd->PushUnsignedShort(shooting_y);
		sgd->PushUnsignedChar(shooting_dir);
	}
}
Esempio n. 4
0
void nofFarmhand::Serialize_nofFarmhand(SerializedGameData& sgd) const
{
    Serialize_nofBuildingWorker(sgd);

    sgd.PushMapPoint(dest);
}
void nofScout_LookoutTower::Serialize_nofScout_LookoutTower(SerializedGameData * sgd) const
{
	Serialize_nofBuildingWorker(sgd);
}