/* * Copyright 2015 Daniel Dittmar * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * */ package dan.dit.whatsthat.riddle.games; import android.content.res.Resources; import android.graphics.Bitmap; import android.graphics.Canvas; import android.support.annotation.NonNull; import android.view.MotionEvent; import dan.dit.whatsthat.image.Image; import dan.dit.whatsthat.riddle.Riddle; import dan.dit.whatsthat.riddle.RiddleConfig; import dan.dit.whatsthat.riddle.control.RiddleGame; import dan.dit.whatsthat.util.general.PercentProgressListener; /** * Riddle for testing images and other bitmap features. NOT MEANT FOR USERS since there * is no riddle in just showing the image straight with no obfuscation and nothing to do! * Created by daniel on 17.04.15. */ public class RiddleDeveloper extends RiddleGame { public RiddleDeveloper(Riddle riddle, Image image, Bitmap bitmap, Resources res, RiddleConfig config, PercentProgressListener listener) { super(riddle, image, bitmap, res, config, listener); } @Override protected void initAchievementData() { } @Override public void draw(Canvas canvas) { canvas.drawBitmap(mBitmap, 0, 0, null); } @Override protected void initBitmap(Resources res, PercentProgressListener listener) { } @Override public boolean onMotionEvent(MotionEvent event) { return false; } @NonNull @Override protected String compactCurrentState() { return ""; } }