Beispiel #1
0
        public void AddToScene(FlowerBunchInfo info)
        {
            stillHasMapObject = true;
            position          = info.position;
            state             = FlowerBunchState.kFlowerBunchActive;
            mapObjectId       = info.mapObjectId;
            shadowMapObjectId = info.shadowMapObjectId;
            type       = info.type;
            hitLine    = info.position.y - 25;
            isSquashed = false;
            if (((int)type == (int)FlowerBunchType.kFlowerBunch_Pink) || ((int)type == (int)FlowerBunchType.kFlowerBunch_Lilac))
            {
                hitLine -= 20.0f;
            }

            for (int i = 0; i < Constants.MAX_PLAYERS; i++)
            {
                hasBeenHitBy[i] = false;
            }
        }
Beispiel #2
0
        }                                         ///@property(readwrite,assign) int myId;

        public void SetState(FlowerBunchState inThing)
        {
            state = inThing;
        }                                                        ///@property(readwrite,assign) FlowerBunchState state;