parent
bfe93f14d6
commit
3beecde004
23 changed files with 44 additions and 10 deletions
@ -0,0 +1 @@ |
||||
/* Copyright © 2023 Entreprise SkamKraft */ |
@ -1,3 +1,5 @@ |
||||
/* Copyright © 2023 Entreprise SkamKraft */ |
||||
|
||||
.modal-disable::backdrop { |
||||
background-color: rgba(0, 0, 0, 0.493); |
||||
} |
@ -1,3 +1,4 @@ |
||||
<!-- Copyright © 2023 Entreprise SkamKraft --> |
||||
<div class="container smooth"> |
||||
<p class="con-title">Bienvenue sur SkamCraft</p> |
||||
<p class="con-content">Application client pour l'API Space Tarders.</p> |
||||
|
@ -1,3 +1,6 @@ |
||||
// Copyright © 2023 Entreprise SkamKraft
|
||||
'use strict'; |
||||
|
||||
import tests from "./test/tests.js"; |
||||
|
||||
tests.get_planet(); |
||||
tests.modal(); |
@ -1,4 +1,6 @@ |
||||
// Copyright © 2023 Entreprise SkamKraft
|
||||
'use strict'; |
||||
|
||||
export const SpaceTraders = { |
||||
host: "https://api.spacetraders.io/v2", |
||||
limit_max: 20, |
@ -1,3 +1,6 @@ |
||||
// Copyright © 2023 Entreprise SkamKraft
|
||||
'use strict'; |
||||
|
||||
import { SpaceTraders } from "./config.js"; |
||||
import { Position } from "../commun/position.js"; |
||||
|
@ -1,7 +1,7 @@ |
||||
// Copyright © 2023 Entreprise SkamKraft
|
||||
'use strict'; |
||||
import { AgentBuilder } from '../api/agent.js' |
||||
import Strategie from '../commun/strategie.js'; |
||||
import { AgentBuilder } from '../skama_code/api/agent.js' |
||||
import Strategie from '../skama_code/commun/strategie.js'; |
||||
|
||||
let strategies = { |
||||
register: [ |
@ -1,5 +1,6 @@ |
||||
// Copyright © 2023 Entreprise SkamKraft
|
||||
'use strict'; |
||||
|
||||
export class Initialzer { |
||||
constructor(UI) { |
||||
this.UI = UI; |
@ -1,3 +1,6 @@ |
||||
// Copyright © 2023 Entreprise SkamKraft
|
||||
'use strict'; |
||||
|
||||
export class Position { |
||||
constructor(x, y) { |
||||
this.x = x; |
@ -1,4 +1,6 @@ |
||||
// Copyright © 2023 Entreprise SkamKraft
|
||||
'use strict'; |
||||
|
||||
export default class Strategie { |
||||
constructor(strategie) { |
||||
this.strategie = strategie; |
@ -1,3 +1,6 @@ |
||||
// Copyright © 2023 Entreprise SkamKraft
|
||||
'use strict'; |
||||
|
||||
export class Modal { |
||||
constructor(name, template_engine, tag = "#block-content") { |
||||
this.name = name; |
@ -1,3 +1,6 @@ |
||||
// Copyright © 2023 Entreprise SkamKraft
|
||||
'use strict'; |
||||
|
||||
export class Timer { |
||||
constructor(time, step, unit = "s") { |
||||
this.passed_time = 0; |
Loading…
Reference in New Issue