lib: make some classes abstract
authorJean Privat <jean@pryen.org>
Fri, 7 Aug 2015 15:25:05 +0000 (11:25 -0400)
committerJean Privat <jean@pryen.org>
Fri, 7 Aug 2015 15:25:05 +0000 (11:25 -0400)
Signed-off-by: Jean Privat <jean@pryen.org>

lib/a_star.nit
lib/ai/backtrack.nit
lib/bucketed_game.nit
lib/github/hooks.nit
lib/markdown/markdown.nit
lib/mnit/image_set.nit
lib/nitcc_runtime.nit

index 9780e12..ba6b45e 100644 (file)
@@ -316,7 +316,7 @@ class AStarPath[N]
 end
 
 # Context related to an evocation of pathfinding
-class PathContext
+abstract class PathContext
        serialize
 
        # Type of the nodes in `graph`
@@ -400,7 +400,7 @@ class WeightedLink
 end
 
 # Advanced path conditions with customizable accept states
-class TargetCondition[N: Node]
+abstract class TargetCondition[N: Node]
        serialize
 
        # Should the pathfinding accept `node` as a goal?
index ddc68ef..597164d 100644 (file)
@@ -40,7 +40,7 @@ module backtrack
 # # Basic search
 #
 # The method `solve` returns a new solver for a backtrack search.
-class BacktrackProblem[S: Object,A]
+abstract class BacktrackProblem[S: Object,A]
        # The starting state of the problem.
        # It is this object that will be modified by `apply_action` and `backtrack`.
        fun initial_state: S is abstract
index ad79e6c..4060dc4 100644 (file)
@@ -25,14 +25,14 @@ module bucketed_game is serialize
 import serialization
 
 # Something acting on the game
-class Turnable[G: Game]
+abstract class Turnable[G: Game]
 
        # Execute `turn` for this instance.
        fun do_turn(turn: GameTurn[G]) is abstract
 end
 
 # Something acting on the game from time to time
-class Bucketable[G: Game]
+abstract class Bucketable[G: Game]
        super Turnable[G]
 
        private var act_at: nullable Int = null
index 351042b..04ae662 100644 (file)
@@ -51,7 +51,7 @@ import events
 import nitcorn
 
 # A nitcorn listener for Github hooks.
-class HookListener
+abstract class HookListener
 
        # Api client used to perform Github API requests.
        var api: GithubAPI
index 854eed5..d928228 100644 (file)
@@ -1838,7 +1838,7 @@ end
 
 # A markdown list line.
 # Mainly used to factorize code between ordered and unordered lists.
-class LineList
+abstract class LineList
        super Line
 
        redef fun process(v) do
index 8561b8f..f0a955e 100644 (file)
@@ -21,7 +21,7 @@ module image_set
 import assets
 
 # A set of images, look for sub-classes in projects using svg_to_png_and_nit
-class ImageSet
+abstract class ImageSet
 
        # Load images to fill this image set
        fun load_all(app: App) is abstract
index 923ef18..b413c7e 100644 (file)
@@ -494,7 +494,7 @@ class Nodes[T: Node]
 end
 
 # A production with a specific, named and statically typed children
-class NProd
+abstract class NProd
        super Node
        redef var children: SequenceRead[nullable Node] = new NProdChildren(self)