MCPcopy Create free account
hub / github.com/OpenDungeons/OpenDungeons / notifyOnMoveDown

Method notifyOnMoveDown

source/camera/SlopeWalk.cpp:110–123  ·  view source on GitHub ↗

Check whether we pass a new Vertex on the left or right path, if so notify about it

Source from the content-addressed store, hash-verified

108
109// Check whether we pass a new Vertex on the left or right path, if so notify about it
110bool SlopeWalk::notifyOnMoveDown(int64_t newyIndex)
111{
112 bool bb = true;
113 while(mLeftVerticesIndex != mLeftVertices.end() && newyIndex < getCurrentLeftVertex().y)
114 {
115 bb = passLeftVertex();
116 }
117 bool kk = true;
118 while(mRightVerticesIndex != mRightVertices.end() && newyIndex < getCurrentRightVertex().y)
119 {
120 kk= passRightVertex();
121 }
122 return bb || kk ;
123}
124
125// Get vertex pointed currently by index on the Left path
126VectorInt64 SlopeWalk::getCurrentLeftVertex()

Callers 1

newBashAndSplashTilesMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected