invertika_game.TriggerArea.update C# (CSharp) Method

update() public method

public update ( ) : void
return void
        public void update()
        {
            //TODO Implementieren
            //            std::set<Actor*> insideNow;
            //            for (BeingIterator i(getMap()->getInsideRectangleIterator(mZone)); i; ++i)
            //            {
            //                // Don't deal with unitialized actors.
            //                if (!(*i) || !(*i)->isPublicIdValid())
            //                    continue;
            //
            //                // The BeingIterator returns the mapZones in touch with the rectangle
            //                // area. On the other hand, the beings contained in the map zones
            //                // may not be within the rectangle area. Hence, this additional
            //                // contains() condition.
            //                if (mZone.contains((*i)->getPosition()))
            //                {
            //                    insideNow.insert(*i);
            //
            //                    if (!mOnce || mInside.find(*i) == mInside.end())
            //                    {
            //                        mAction->process(*i);
            //                    }
            //                }
            //            }
            //
            //            mInside.swap(insideNow); //swapping is faster than assigning
        }