-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* basic interference fields; setting up operations for ce deployables * applying corrected properties to object definitions and applying them to interference tests for deployable ce and for deploying vehicles; made two otherwise useles object definitions to store property data (if we ever need ziplines or teleport pads ...) * sent deployment requests to a centralized pipeline for interference testing; swapped out math.pow(a,2) for a * a * temporary interference for vehicles that are going to transition to deployed eventually and block other deploying vehicles * reversed the origin of the interference tests * exception for non-interference resolves to wrong conclusion * ramshackle merge conflict resolution; fixing interference for non-interference deploying vehicles
- Loading branch information
Showing
19 changed files
with
383 additions
and
103 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 21 additions & 3 deletions
24
src/main/scala/net/psforever/objects/ce/DeployableCategory.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,26 @@ | ||
// Copyright (c) 2017 PSForever | ||
package net.psforever.objects.ce | ||
|
||
object DeployableCategory extends Enumeration { | ||
type Type = Value | ||
abstract class DeployableCategory(val name: String) | ||
|
||
val Boomers, Mines, SmallTurrets, Sensors, TankTraps, FieldTurrets, ShieldGenerators, Telepads = Value | ||
object DeployableCategory { | ||
case object None extends DeployableCategory(name = "None") | ||
|
||
case object Boomers extends DeployableCategory(name = "Boomers") | ||
|
||
case object Mines extends DeployableCategory(name = "Mines") | ||
|
||
case object SmallTurrets extends DeployableCategory(name = "SmallTurrets") | ||
|
||
case object Sensors extends DeployableCategory(name = "Sensors") | ||
|
||
case object TankTraps extends DeployableCategory(name = "TankTraps") | ||
|
||
case object FieldTurrets extends DeployableCategory(name = "FieldTurrets") | ||
|
||
case object ShieldGenerators extends DeployableCategory(name = "ShieldGenerators") | ||
|
||
case object Telepads extends DeployableCategory(name = "Telepads") | ||
|
||
val values: Seq[DeployableCategory] = Seq(None, Boomers, Mines, SmallTurrets, Sensors, TankTraps, FieldTurrets, ShieldGenerators, Telepads) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.