Skip to content

Commit

Permalink
[ files ] Oh no, upload files
Browse files Browse the repository at this point in the history
  • Loading branch information
ice1000 committed Dec 21, 2017
1 parent 4b2ea14 commit 29e0513
Show file tree
Hide file tree
Showing 5 changed files with 42 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/org/frice/platform/owner/ColorOwner.kt
@@ -0,0 +1,7 @@
package org.frice.platform.owner

import org.frice.resource.graphics.ColorResource

interface ColorOwner {
val color: ColorResource
}
12 changes: 12 additions & 0 deletions src/org/frice/platform/owner/ImageOwner.kt
@@ -0,0 +1,12 @@
package org.frice.platform.owner

import org.frice.obj.Collidable
import org.frice.platform.FriceImage
import org.frice.utils.shape.FShapeQuad

interface ImageOwner : Collidable, FShapeQuad {
val image: FriceImage

override val width: Double get() = image.width.toDouble()
override val height: Double get() = image.height.toDouble()
}
7 changes: 7 additions & 0 deletions src/org/frice/platform/owner/Resizable.java
@@ -0,0 +1,7 @@
package org.frice.platform.owner;

public interface Resizable {
void setResizable(boolean resizable);

boolean isResizable();
}
7 changes: 7 additions & 0 deletions src/org/frice/platform/owner/Sized.java
@@ -0,0 +1,7 @@
package org.frice.platform.owner;

public interface Sized {
int getHeight();

int getWidth();
}
9 changes: 9 additions & 0 deletions src/org/frice/platform/owner/TitleOwner.java
@@ -0,0 +1,9 @@
package org.frice.platform.owner;

import org.jetbrains.annotations.NotNull;

public interface TitleOwner {
void setTitle(@NotNull String title);

@NotNull String getTitle();
}

0 comments on commit 29e0513

Please sign in to comment.