#Testing
5 inputs
3 4 5- Expect: Right angled, scalene1 12 11- Expect Scalene, obtuse4 7 100- Expect: Not a Trianlge1 1 2- Expect Isosceles, right angled6 6 6- Expect Equilateral, acute
| package Oxyfps; | |
| import com.jme3.input.InputManager; | |
| import com.jme3.input.KeyInput; | |
| import com.jme3.input.MouseInput; | |
| import com.jme3.input.controls.ActionListener; | |
| import com.jme3.input.controls.KeyTrigger; | |
| import com.jme3.input.controls.MouseButtonTrigger; | |
| public class InputController implements ActionListener { |
| /** | |
| * Monitors projectiles and whether they should be | |
| * destroyed or not | |
| * @author homelinen | |
| * | |
| */ | |
| public class ProjectileGarbageCollector implements PhysicsCollisionListener{ | |
| String worldName; | |
| <?xml version="1.0" encoding="UTF-8"?> | |
| <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> | |
| <xsl:key name="actorKey" match="person" use="@aID"/> | |
| <xsl:template match="/"> | |
| <html> | |
| <head> | |
| <title>Movies</title> | |
| </head> | |
| <body> | |
| <h1>Profit of Films Starring Jessica Alba</h1> |
#Testing
5 inputs
3 4 5 - Expect: Right angled, scalene1 12 11 - Expect Scalene, obtuse4 7 100 - Expect: Not a Trianlge1 1 2 - Expect Isosceles, right angled6 6 6 - Expect Equilateral, acute| <?xml version="1.0" ?> | |
| <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"> | |
| <!-- Structure --> | |
| <xs:element name="movieReviews"> | |
| <xs:complexType> | |
| <xs:sequence> | |
| <!--Movies--> | |
| <xs:element name="movies"> |
| 1. View the payments for a specific year and month | |
| select * from pay where (extract(month from dateOfPayment) = "02" and extract(year from dateOfPayment) = "2012"); | |
| +-----------+------------+---------------+-------------+-----------------+-------+-----------+ | |
| | paymentID | employeeID | dateOfPayment | hoursWorked | commissionSales | bonus | contactID | | |
| +-----------+------------+---------------+-------------+-----------------+-------+-----------+ | |
| | 2 | 1 | 2012-02-01 | 0 | 0 | 1000 | NULL | | |
| | 4 | 2 | 2012-02-01 | 40 | 0 | 50 | NULL | | |
| | 8 | 3 | 2012-02-02 | 20 | 1 | 0 | NULL | |
| -- | |
| -- Database: `comedyclub` | |
| -- | |
| -- -------------------------------------------------------- | |
| -- | |
| -- Table structure for table `agent` | |
| -- |
| /** | |
| * File: Explore | |
| * | |
| * Description: | |
| * Simple command line navigation system. | |
| * | |
| * Author: Calum Gilchrist | |
| * | |
| **/ |
| /** | |
| * Use A* algorithm to find the best path to the playerPos | |
| * in the maze: theMaze. | |
| * @param playerPos | |
| * @param theMaze | |
| */ | |
| public void findChasePath(Point playerPos, Maze theMaze) { | |
| Point current; | |
| int cost=0; |
| /** | |
| * Check the keyboard input and set the player to move | |
| */ | |
| public void keyboardInput() { | |
| int playerx = thePlayer.getxPos() /theDisplay.getCellWidth(); | |
| int playery = thePlayer.getyPos() / theDisplay.getCellHeight(); | |
| if (theInputManager.isAnyKeyPressed()) { | |