[Client] Update method names in ActorList

0.6.1
David Cernat 8 years ago
parent 5c1d7f614a
commit 56aeb85965

@ -28,7 +28,7 @@ void ActorList::reset()
cell.blank(); cell.blank();
baseActors.clear(); baseActors.clear();
positionActors.clear(); positionActors.clear();
drawStateActors.clear(); animFlagsActors.clear();
guid = mwmp::Main::get().getNetworking()->getLocalPlayer()->guid; guid = mwmp::Main::get().getNetworking()->getLocalPlayer()->guid;
} }
@ -47,9 +47,9 @@ void ActorList::addPositionActor(LocalActor localActor)
positionActors.push_back(localActor); positionActors.push_back(localActor);
} }
void ActorList::addDrawStateActor(LocalActor localActor) void ActorList::addAnimFlagsActor(LocalActor localActor)
{ {
drawStateActors.push_back(localActor); animFlagsActors.push_back(localActor);
} }
void ActorList::sendPositionActors() void ActorList::sendPositionActors()
@ -62,11 +62,11 @@ void ActorList::sendPositionActors()
} }
} }
void ActorList::sendDrawStateActors() void ActorList::sendAnimFlagsActors()
{ {
if (drawStateActors.size() > 0) if (animFlagsActors.size() > 0)
{ {
baseActors = drawStateActors; baseActors = animFlagsActors;
Main::get().getNetworking()->getActorPacket(ID_ACTOR_ANIM_FLAGS)->setActorList(this); Main::get().getNetworking()->getActorPacket(ID_ACTOR_ANIM_FLAGS)->setActorList(this);
Main::get().getNetworking()->getActorPacket(ID_ACTOR_ANIM_FLAGS)->Send(); Main::get().getNetworking()->getActorPacket(ID_ACTOR_ANIM_FLAGS)->Send();
} }

@ -22,10 +22,10 @@ namespace mwmp
void addActor(LocalActor localActor); void addActor(LocalActor localActor);
void addPositionActor(LocalActor localActor); void addPositionActor(LocalActor localActor);
void addDrawStateActor(LocalActor localActor); void addAnimFlagsActor(LocalActor localActor);
void sendPositionActors(); void sendPositionActors();
void sendDrawStateActors(); void sendAnimFlagsActors();
void editActorsInCell(MWWorld::CellStore* cellStore); void editActorsInCell(MWWorld::CellStore* cellStore);
@ -35,7 +35,7 @@ namespace mwmp
Networking *getNetworking(); Networking *getNetworking();
std::vector<BaseActor> positionActors; std::vector<BaseActor> positionActors;
std::vector<BaseActor> drawStateActors; std::vector<BaseActor> animFlagsActors;
}; };
} }

@ -53,7 +53,7 @@ void Cell::updateLocal(bool forceUpdate)
} }
actorList->sendPositionActors(); actorList->sendPositionActors();
actorList->sendDrawStateActors(); actorList->sendAnimFlagsActors();
} }
void Cell::updateDedicated(float dt) void Cell::updateDedicated(float dt)

@ -107,7 +107,7 @@ void LocalActor::updateAnimFlags(bool forceUpdate)
if (isJumping) if (isJumping)
updatePosition(true); // fix position after jump; updatePosition(true); // fix position after jump;
mwmp::Main::get().getNetworking()->getActorList()->addDrawStateActor(*this); mwmp::Main::get().getNetworking()->getActorList()->addAnimFlagsActor(*this);
} }
} }

Loading…
Cancel
Save